mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-03-17 20:54:52 +08:00
fix BotCommand regex match argument bug
This commit is contained in:
parent
7cfdbee843
commit
817b81f900
@ -464,6 +464,7 @@ class OneBot12Adapter extends ZMPlugin
|
||||
}
|
||||
// 测试 regex
|
||||
if ($v->regex !== '' && preg_match('/' . $v->regex . '/u', $full_str, $match) !== 0) {
|
||||
array_shift($match);
|
||||
return [$v, $match, $full_str];
|
||||
}
|
||||
// 测试 start_with
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user