Double backslash

main
Bob Mottram 2021-07-29 14:27:29 +01:00
parent 8de7e9d534
commit 200a4bff31
1 changed files with 2 additions and 2 deletions

View File

@ -1595,9 +1595,9 @@ def getNicknameValidationPattern() -> str:
pattern = ''
for word in reservedNames:
if pattern:
pattern += '(?!.*\b' + word + '\b)'
pattern += '(?!.*\\b' + word + '\\b)'
else:
pattern = '^(?!.*\b' + word + '\b)'
pattern = '^(?!.*\\b' + word + '\\b)'
return pattern + '.*$'