mirror of
https://github.com/kuaifan/dootask.git
synced 2026-01-06 04:18:13 +00:00
feat: 规范以斜杠开头的命令
This commit is contained in:
parent
6cf8290565
commit
3b3ffd494f
@ -901,6 +901,9 @@ class WebSocketDialogMsg extends AbstractModel
|
|||||||
$result = mb_substr($result, 0, $maxLength);
|
$result = mb_substr($result, 0, $maxLength);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 规范以斜杠开头的命令
|
||||||
|
$result = preg_replace('/^\s*\\//', '/', $result);
|
||||||
|
|
||||||
return $result;
|
return $result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user