dav_base: Improved DAVNumberValidator (and tests for that)
Run tests / Execute tox to run the test suite (push) Successful in 3m24s
Run tests / Execute tox to run the test suite (push) Successful in 3m24s
This commit is contained in:
@@ -4,10 +4,10 @@ from django.utils.translation import gettext_lazy as _
|
||||
|
||||
|
||||
DAVNumberValidator = RegexValidator(r'^'
|
||||
r'([0-9]{1,10}/[0-9]{2,10}/)?'
|
||||
r'[0-9]{1,10}'
|
||||
r'(\*[0-9]{1,10})?'
|
||||
r'(\*[0-9]{4}\*[0-9]{4})?'
|
||||
r'([* ][0-9]{8})?'
|
||||
r'([0-9]{3}/[0-9]{2}/)?'
|
||||
r'[0-9]{1,6}'
|
||||
r'([*x ][0-9]{1,4})?'
|
||||
r'([*x ][0-9]{4}[*x ][0-9]{4})?'
|
||||
r'([*x ][0-9]{8})?'
|
||||
r'$',
|
||||
_('Ungültiges Format.'))
|
||||
|
||||
Reference in New Issue
Block a user