We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 812834b commit 3a938d2Copy full SHA for 3a938d2
1 file changed
astrbot/core/star/filter/regex.py
@@ -15,4 +15,4 @@ def __init__(self, regex: str) -> None:
15
self.regex = re.compile(regex)
16
17
def filter(self, event: AstrMessageEvent, cfg: AstrBotConfig) -> bool:
18
- return bool(self.regex.match(event.get_message_str().strip()))
+ return bool(self.regex.search(event.get_message_str().strip()))
0 commit comments