We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 56fbea2 commit e71633cCopy full SHA for e71633c
dynamic_preferences/preferences.py
@@ -22,7 +22,7 @@ class InvalidNameError(ValueError):
22
23
def check_name(name, obj):
24
error = None
25
- if not re.match("^\w+$", name):
+ if not re.match(r"^\w+$", name):
26
error = "Non-alphanumeric / underscore characters are forbidden in section and preferences names"
27
if preferences_settings.SECTION_KEY_SEPARATOR in name:
28
error = 'Sequence "{0}" is forbidden in section and preferences name, since it is used to access values via managers'.format(
0 commit comments