Fix description of the validation rule for calibre library names so it actually matches the pattern

This commit is contained in:
Aurélien Couderc authored and Sunil Mohan Adapa committed 2022-04-10 14:05:21 -07:00
1 parent d21e33268d
commit 37d066e285
1 file changed
+3 -3
+3 -3
View File
@@ -16,9 +16,9 @@ class CreateLibraryForm(forms.Form):
name = forms.CharField(
label=_('Name of the new library'), strip=True,
help_text=_('Only letters of the English alphabet and numbers, '
'without spaces or special characters. Example: '
'My_Library_2000'),
help_text=_('Only letters of the English alphabet, numbers '
'and the characters _ . and - without spaces or '
'special characters. Example: My_Library_2000'),
validators=[validators.RegexValidator(r'^[A-Za-z0-9_.-]+$')])
def clean_name(self):