mirror of https://gitlab.com/bashrc2/epicyon
Double backslash
parent
8de7e9d534
commit
200a4bff31
4
utils.py
4
utils.py
|
@ -1595,9 +1595,9 @@ def getNicknameValidationPattern() -> str:
|
||||||
pattern = ''
|
pattern = ''
|
||||||
for word in reservedNames:
|
for word in reservedNames:
|
||||||
if pattern:
|
if pattern:
|
||||||
pattern += '(?!.*\b' + word + '\b)'
|
pattern += '(?!.*\\b' + word + '\\b)'
|
||||||
else:
|
else:
|
||||||
pattern = '^(?!.*\b' + word + '\b)'
|
pattern = '^(?!.*\\b' + word + '\\b)'
|
||||||
return pattern + '.*$'
|
return pattern + '.*$'
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue