summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2017-03-29 09:50:05 +0100
committerErik Johnston <erik@matrix.org>2017-03-29 09:50:05 +0100
commit69efd7774935c1dd6a0330f114c7fca00db959c0 (patch)
tree8504f23474bd8a1b81db00969246f620423fd13c /synapse
parentCache whether an AS is interested based on members (diff)
downloadsynapse-69efd7774935c1dd6a0330f114c7fca00db959c0.tar.xz
Add comment
Diffstat (limited to 'synapse')
-rw-r--r--synapse/appservice/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/appservice/__init__.py b/synapse/appservice/__init__.py
index 48791f0d9b..7346206bb1 100644
--- a/synapse/appservice/__init__.py
+++ b/synapse/appservice/__init__.py
@@ -127,7 +127,7 @@ class ApplicationService(object):
                     )
                 regex = regex_obj.get("regex")
                 if isinstance(regex, basestring):
-                    regex_obj["regex"] = re.compile(regex)
+                    regex_obj["regex"] = re.compile(regex)  # Pre-compile regex
                 else:
                     raise ValueError(
                         "Expected string for 'regex' in ns '%s'" % ns