diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2014-05-16 07:59:10 +0200 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2014-05-16 07:59:10 +0200 |
commit | a8a204df07020d04ccce745b1f1b53c8eabeddd1 (patch) | |
tree | 40f776539597d33d1631a95f399226fb402df707 /pyaggr3g470r | |
parent | Login and signup for already users only. (diff) | |
download | newspipe-a8a204df07020d04ccce745b1f1b53c8eabeddd1.tar.gz newspipe-a8a204df07020d04ccce745b1f1b53c8eabeddd1.tar.bz2 newspipe-a8a204df07020d04ccce745b1f1b53c8eabeddd1.zip |
Updated test of the nickname.
Diffstat (limited to 'pyaggr3g470r')
-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): """ |