mirror of
https://github.com/nonebot/nonebot2.git
synced 2025-02-20 09:38:23 +08:00
commit
7ced508f9d
@ -224,7 +224,7 @@ def endswith(msg: Union[str, Tuple[str, ...]],
|
|||||||
if event.get_type() != "message":
|
if event.get_type() != "message":
|
||||||
return False
|
return False
|
||||||
text = event.get_plaintext()
|
text = event.get_plaintext()
|
||||||
return bool(pattern.match(text))
|
return bool(pattern.search(text))
|
||||||
|
|
||||||
return Rule(_endswith)
|
return Rule(_endswith)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user