Skip to content
Snippets Groups Projects
Commit 91482cd6 authored by David Baker's avatar David Baker
Browse files

Use raw string for regex here, otherwise \b is the backspace character. Fixes displayname matching.

parent db6e1e1f
Branches
Tags
No related merge requests found
...@@ -186,7 +186,7 @@ class Pusher(object): ...@@ -186,7 +186,7 @@ class Pusher(object):
if not display_name: if not display_name:
return False return False
return re.search( return re.search(
"\b%s\b" % re.escape(display_name), ev['content']['body'], r"\b%s\b" % re.escape(display_name), ev['content']['body'],
flags=re.IGNORECASE flags=re.IGNORECASE
) is not None ) is not None
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment