dav_base: Improved DAVNumberValidator (and tests for that)
Run tests / Execute tox to run the test suite (push) Successful in 3m24s

This commit is contained in:
2026-05-18 16:27:19 +02:00
parent f821d09bdc
commit 56a0a00e98
3 changed files with 44 additions and 23 deletions
+5 -5
View File
@@ -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.'))