0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-12-18 09:24:02 +01:00

Add comment

This commit is contained in:
Erik Johnston 2017-03-29 09:50:05 +01:00
parent 51b156d48a
commit 69efd77749

View file

@ -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