Signal to support groups ending with equal symbol (=) (#670)

This commit is contained in:
oddlama 2022-09-21 13:44:39 +02:00 committed by GitHub
parent 2d33935e10
commit 4b4e4ffd77
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -38,7 +38,7 @@ from ..AppriseLocale import gettext_lazy as _
GROUP_REGEX = re.compile( GROUP_REGEX = re.compile(
r'^\s*((\@|\%40)?(group\.)|\@|\%40)(?P<group>[a-z0-9_-]+)', re.I) r'^\s*((\@|\%40)?(group\.)|\@|\%40)(?P<group>[a-z0-9_=-]+)', re.I)
class NotifySignalAPI(NotifyBase): class NotifySignalAPI(NotifyBase):
@ -123,7 +123,7 @@ class NotifySignalAPI(NotifyBase):
'name': _('Target Group ID'), 'name': _('Target Group ID'),
'type': 'string', 'type': 'string',
'prefix': '@', 'prefix': '@',
'regex': (r'^[a-z0-9_-]+$', 'i'), 'regex': (r'^[a-z0-9_=-]+$', 'i'),
'map_to': 'targets', 'map_to': 'targets',
}, },
'targets': { 'targets': {