diff options
author | Travis Ralston <travpc@gmail.com> | 2018-10-24 13:22:59 -0600 |
---|---|---|
committer | Travis Ralston <travpc@gmail.com> | 2018-10-24 13:22:59 -0600 |
commit | 54def42c19c51b102dbd9a77dfd2430944a94d79 (patch) | |
tree | da30431884421f42ab95e103bf66c7343d4cc4c4 /synapse/api | |
parent | Fix terms UI auth test (diff) | |
parent | fix branch regexp (diff) | |
download | synapse-54def42c19c51b102dbd9a77dfd2430944a94d79.tar.xz |
Merge branch 'develop' into travis/login-terms
Diffstat (limited to 'synapse/api')
-rw-r--r-- | synapse/api/filtering.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/synapse/api/filtering.py b/synapse/api/filtering.py index eed8c67e6a..677c0bdd4c 100644 --- a/synapse/api/filtering.py +++ b/synapse/api/filtering.py @@ -172,7 +172,10 @@ USER_FILTER_SCHEMA = { # events a lot easier as we can then use a negative lookbehind # assertion to split '\.' If we allowed \\ then it would # incorrectly split '\\.' See synapse.events.utils.serialize_event - "pattern": "^((?!\\\).)*$" + # + # Note that because this is a regular expression, we have to escape + # each backslash in the pattern. + "pattern": r"^((?!\\\\).)*$" } } }, |