aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pyaggr3g470r/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pyaggr3g470r/models.py b/pyaggr3g470r/models.py
index 9770ed77..f21ee3ec 100644
--- a/pyaggr3g470r/models.py
+++ b/pyaggr3g470r/models.py
@@ -51,7 +51,7 @@ class User(db.Model, UserMixin):
@staticmethod
def make_valid_nickname(nickname):
- return re.sub(ur'[^\w]', '', nickname, flags=re.U)
+ return re.sub(ur'[^\w \-]', '', nickname, flags=re.U)
def get_id(self):
"""
bgstack15