Escape domain in bridge registration regex

development
Slavi Pantaleev 6 years ago
parent 5002c7edaa
commit 668f98a2d3

@ -171,7 +171,7 @@ matrix_mautrix_facebook_registration_yaml: |
namespaces: namespaces:
users: users:
- exclusive: true - exclusive: true
regex: '@facebook_.+:{{ matrix_mautrix_facebook_homeserver_domain }}' regex: '@facebook_.+:{{ matrix_mautrix_facebook_homeserver_domain|regex_escape }}'
url: {{ matrix_mautrix_facebook_appservice_address }} url: {{ matrix_mautrix_facebook_appservice_address }}
sender_localpart: facebookbot sender_localpart: facebookbot
rate_limited: false rate_limited: false

@ -367,10 +367,10 @@ matrix_mautrix_telegram_registration_yaml: |
namespaces: namespaces:
users: users:
- exclusive: true - exclusive: true
regex: '@telegram_.+:{{ matrix_mautrix_telegram_homeserver_domain }}' regex: '@telegram_.+:{{ matrix_mautrix_telegram_homeserver_domain|regex_escape }}'
aliases: aliases:
- exclusive: true - exclusive: true
regex: '#telegram_.+:{{ matrix_mautrix_telegram_homeserver_domain }}' regex: '#telegram_.+:{{ matrix_mautrix_telegram_homeserver_domain|regex_escape }}'
url: {{ matrix_mautrix_telegram_appservice_address }} url: {{ matrix_mautrix_telegram_appservice_address }}
sender_localpart: telegrambot sender_localpart: telegrambot
rate_limited: false rate_limited: false

Loading…
Cancel
Save