Not containing words

This commit is contained in:
bashrc committed 2021-07-29 14:14:37 +01:00
1 parent f6ee975236
commit 8aac65c3c4
1 file changed
+2 -2
+2 -2
View File
@@ -1597,8 +1597,8 @@ def getNicknameValidationPattern() -> str:
if pattern:
pattern += '|' + word
else:
pattern = '[^(' + word
return pattern + ')]'
pattern = '(?!(' + word
return pattern + '))'
def _isReservedName(nickname: str) -> bool: