diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2014-05-06 07:58:09 +0200 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2014-05-06 07:58:09 +0200 |
commit | bd46ef60cd91d674c31ae3fbcb0822926bbed307 (patch) | |
tree | fe47d36d5f367fee27608b0f7bc5b5652d638486 | |
parent | About page is accessible when disconnected. (diff) | |
download | newspipe-bd46ef60cd91d674c31ae3fbcb0822926bbed307.tar.gz newspipe-bd46ef60cd91d674c31ae3fbcb0822926bbed307.tar.bz2 newspipe-bd46ef60cd91d674c31ae3fbcb0822926bbed307.zip |
Updated regex.
-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 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): """ |