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: if pattern:
pattern += '|' + word pattern += '|' + word
else: else:
pattern = '[^(' + word pattern = '(?!(' + word
return pattern + ')]' return pattern + '))'
def _isReservedName(nickname: str) -> bool: def _isReservedName(nickname: str) -> bool: