generated from Nemesis/Exemple
test mendhandler
This commit is contained in:
parent
c1ad8d1a3c
commit
4c318ee631
1 changed files with 1 additions and 1 deletions
|
@ -14,7 +14,7 @@ class MEndHandler(MHandler):
|
|||
|
||||
def test(self, room, event):
|
||||
if event['type'] == "m.room.message":
|
||||
motif = "^.+" + self.regex_str + "$"
|
||||
motif = "^[\S\s]+" + self.regex_str + "$"
|
||||
if re.match(motif, event['content']['body']):
|
||||
# The message matches the regex, return true
|
||||
return True
|
||||
|
|
Loading…
Reference in a new issue