aboutsummaryrefslogtreecommitdiff
path: root/pyaggr3g470r
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2014-05-16 07:59:10 +0200
committerCédric Bonhomme <cedric@cedricbonhomme.org>2014-05-16 07:59:10 +0200
commita8a204df07020d04ccce745b1f1b53c8eabeddd1 (patch)
tree40f776539597d33d1631a95f399226fb402df707 /pyaggr3g470r
parentLogin and signup for already users only. (diff)
downloadnewspipe-a8a204df07020d04ccce745b1f1b53c8eabeddd1.tar.gz
newspipe-a8a204df07020d04ccce745b1f1b53c8eabeddd1.tar.bz2
newspipe-a8a204df07020d04ccce745b1f1b53c8eabeddd1.zip
Updated test of the nickname.
Diffstat (limited to 'pyaggr3g470r')
-rw-r--r--pyaggr3g470r/models.py2
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):
"""
bgstack15