mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-05-02 23:20:56 -04:00
Update validators.py
This commit is contained in:
@@ -127,7 +127,7 @@ class LettersNumbersSingleQuotesFullStopsAndUnderscoresOnly:
|
||||
|
||||
def __call__(self, form, field):
|
||||
if field.data and not re.match(self.regex, field.data):
|
||||
raise ValidationError(self.parenthesis)
|
||||
raise ValidationError(self.message)
|
||||
|
||||
|
||||
class DoesNotStartWithDoubleZero:
|
||||
|
||||
Reference in New Issue
Block a user