diff options
-rw-r--r-- | pyaggr3g470r/models.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pyaggr3g470r/models.py b/pyaggr3g470r/models.py index ced7e549..63d547a9 100644 --- a/pyaggr3g470r/models.py +++ b/pyaggr3g470r/models.py @@ -53,7 +53,7 @@ class User(db.Model, UserMixin): @staticmethod def make_valid_nickname(nickname): - return re.sub(ur'[^\w \-]', '', nickname, flags=re.U) + return re.sub('[^a-zA-Z0-9_\.]', '', nickname) def get_id(self): """ |