|
@ -14,7 +14,7 @@ class MEndHandler(MHandler): |
|
|
|
|
|
|
|
|
def test(self, room, event): |
|
|
def test(self, room, event): |
|
|
if event['type'] == "m.room.message": |
|
|
if event['type'] == "m.room.message": |
|
|
motif = "^.+" + self.regex_str + "$" |
|
|
motif = "^[\S\s]+" + self.regex_str + "$" |
|
|
if re.match(motif, event['content']['body']): |
|
|
if re.match(motif, event['content']['body']): |
|
|
# The message matches the regex, return true |
|
|
# The message matches the regex, return true |
|
|
return True |
|
|
return True |
|
|