From 8aac65c3c452c1220192898cee91e3f702ea64f0 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Thu, 29 Jul 2021 14:14:37 +0100 Subject: [PATCH] Not containing words --- utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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: