diff --git a/utils.py b/utils.py index ae3ea46af..ba513b435 100644 --- a/utils.py +++ b/utils.py @@ -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: