Not containing words

main
Bob Mottram 2021-07-29 14:14:37 +01:00
parent f6ee975236
commit 8aac65c3c4
1 changed files with 2 additions and 2 deletions

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: