mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-12-16 12:43:53 -05:00
Add comment
This commit is contained in:
parent
51b156d48a
commit
69efd77749
1 changed files with 1 additions and 1 deletions
|
|
@ -127,7 +127,7 @@ class ApplicationService(object):
|
||||||
)
|
)
|
||||||
regex = regex_obj.get("regex")
|
regex = regex_obj.get("regex")
|
||||||
if isinstance(regex, basestring):
|
if isinstance(regex, basestring):
|
||||||
regex_obj["regex"] = re.compile(regex)
|
regex_obj["regex"] = re.compile(regex) # Pre-compile regex
|
||||||
else:
|
else:
|
||||||
raise ValueError(
|
raise ValueError(
|
||||||
"Expected string for 'regex' in ns '%s'" % ns
|
"Expected string for 'regex' in ns '%s'" % ns
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue