summary refs log tree commit diff
path: root/synapse/config/registration.py
diff options
context:
space:
mode:
authorRichard van der Hoff <1389908+richvdh@users.noreply.github.com>2019-01-25 13:57:52 +0000
committerGitHub <noreply@github.com>2019-01-25 13:57:52 +0000
commit4a3f1388328f8181c33b74a6a777ab2073d400d8 (patch)
tree004010da71638001e4832e632821a289b37430df /synapse/config/registration.py
parentFix Host header sent by MatrixFederationAgent (#4468) (diff)
downloadsynapse-4a3f1388328f8181c33b74a6a777ab2073d400d8.tar.xz
Fix quoting for allowed_local_3pids example config (#4476)
If you use double-quotes here, you have to escape your backslashes. It's much
easier with single-quotes.

(Note that the existing double-backslashes are already interpreted by python's
""" parsing.)
Diffstat (limited to '')
-rw-r--r--synapse/config/registration.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/synapse/config/registration.py b/synapse/config/registration.py
index fe520d6855..d808a989f3 100644
--- a/synapse/config/registration.py
+++ b/synapse/config/registration.py
@@ -84,11 +84,11 @@ class RegistrationConfig(Config):
         #
         # allowed_local_3pids:
         #     - medium: email
-        #       pattern: ".*@matrix\\.org"
+        #       pattern: '.*@matrix\\.org'
         #     - medium: email
-        #       pattern: ".*@vector\\.im"
+        #       pattern: '.*@vector\\.im'
         #     - medium: msisdn
-        #       pattern: "\\+44"
+        #       pattern: '\\+44'
 
         # If set, allows registration by anyone who also has the shared
         # secret, even if registration is otherwise disabled.