Skip to content
Snippets Groups Projects
Verified Commit 9eb1898c authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Fix regex matching

parent ccd5a7c5
No related branches found
No related tags found
No related merge requests found
...@@ -167,7 +167,7 @@ class Matrix: ...@@ -167,7 +167,7 @@ class Matrix:
message = event["content"]["body"] message = event["content"]["body"]
for key_, func in cases.items(): for key_, func in cases.items():
if regex: if regex:
finds = key_.findall(messaage) finds = re.search(key_, message)
if finds: if finds:
matches.append(message) matches.append(message)
func(finds, event) func(finds, event)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment