mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-07-28 19:59:18 -04:00
Allow underscores in SMS senders
This commit is contained in:
@@ -103,9 +103,9 @@ class OnlySMSCharacters:
|
||||
)
|
||||
|
||||
|
||||
class LettersNumbersAndFullStopsOnly:
|
||||
class LettersNumbersFullStopsAndUnderscoresOnly:
|
||||
|
||||
regex = re.compile(r'^[a-zA-Z0-9\s\.]+$')
|
||||
regex = re.compile(r'^[a-zA-Z0-9\s\._]+$')
|
||||
|
||||
def __init__(self, message='Use letters and numbers only'):
|
||||
self.message = message
|
||||
|
||||
Reference in New Issue
Block a user