mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-28 22:50:19 +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 = preg_replace('/^\s*\\//', '/', $result);
|
||||
|
||||
return $result;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user