mirror of
https://github.com/nonebot/nonebot2.git
synced 2025-01-19 09:38:21 +08:00
🐛 Fix endswith match bug
This commit is contained in:
parent
3fa75b1c78
commit
ed1f1c27e2
@ -224,7 +224,7 @@ def endswith(msg: Union[str, Tuple[str, ...]],
|
||||
if event.get_type() != "message":
|
||||
return False
|
||||
text = event.get_plaintext()
|
||||
return bool(pattern.match(text))
|
||||
return bool(pattern.search(text))
|
||||
|
||||
return Rule(_endswith)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user