aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2014-05-06 07:58:09 +0200
committerCédric Bonhomme <cedric@cedricbonhomme.org>2014-05-06 07:58:09 +0200
commitbd46ef60cd91d674c31ae3fbcb0822926bbed307 (patch)
treefe47d36d5f367fee27608b0f7bc5b5652d638486
parentAbout page is accessible when disconnected. (diff)
downloadnewspipe-bd46ef60cd91d674c31ae3fbcb0822926bbed307.tar.gz
newspipe-bd46ef60cd91d674c31ae3fbcb0822926bbed307.tar.bz2
newspipe-bd46ef60cd91d674c31ae3fbcb0822926bbed307.zip
Updated regex.
-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