aboutsummaryrefslogtreecommitdiff
path: root/pyaggr3g470r
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2014-05-05 14:09:50 +0200
committerCédric Bonhomme <cedric@cedricbonhomme.org>2014-05-05 14:09:50 +0200
commit99c3bed49f6ee0124be79de66a91daaa5f56f735 (patch)
tree26203e9517d8a38241f2b6bc454fc27d9b499b81 /pyaggr3g470r
parentImproved forms validation. (diff)
downloadnewspipe-99c3bed49f6ee0124be79de66a91daaa5f56f735.tar.gz
newspipe-99c3bed49f6ee0124be79de66a91daaa5f56f735.tar.bz2
newspipe-99c3bed49f6ee0124be79de66a91daaa5f56f735.zip
Improved make_valid_nickname function.
Diffstat (limited to 'pyaggr3g470r')
-rw-r--r--pyaggr3g470r/models.py2
-rw-r--r--pyaggr3g470r/translations/fr/LC_MESSAGES/messages.mobin9898 -> 9898 bytes
-rw-r--r--pyaggr3g470r/translations/fr/LC_MESSAGES/messages.po4
3 files changed, 3 insertions, 3 deletions
diff --git a/pyaggr3g470r/models.py b/pyaggr3g470r/models.py
index dcbe221c..9770ed77 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('[^a-zA-Z0-9_\.\-]', '', nickname)
+ return re.sub(ur'[^\w]', '', nickname, flags=re.U)
def get_id(self):
"""
diff --git a/pyaggr3g470r/translations/fr/LC_MESSAGES/messages.mo b/pyaggr3g470r/translations/fr/LC_MESSAGES/messages.mo
index 930ffe2a..6fb63ea3 100644
--- a/pyaggr3g470r/translations/fr/LC_MESSAGES/messages.mo
+++ b/pyaggr3g470r/translations/fr/LC_MESSAGES/messages.mo
Binary files differ
diff --git a/pyaggr3g470r/translations/fr/LC_MESSAGES/messages.po b/pyaggr3g470r/translations/fr/LC_MESSAGES/messages.po
index eac8cfe2..0172f25b 100644
--- a/pyaggr3g470r/translations/fr/LC_MESSAGES/messages.po
+++ b/pyaggr3g470r/translations/fr/LC_MESSAGES/messages.po
@@ -7,8 +7,8 @@ msgid ""
msgstr ""
"Project-Id-Version: PROJECT VERSION\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
-"POT-Creation-Date: 2014-05-05 13:39+0200\n"
-"PO-Revision-Date: 2014-05-05 13:39+0100\n"
+"POT-Creation-Date: 2014-05-05 14:07+0200\n"
+"PO-Revision-Date: 2014-05-05 14:07+0100\n"
"Last-Translator: Cédric Bonhomme <cedric@cedricbonhomme.org>\n"
"Language-Team: fr <LL@li.org>\n"
"Language: fr\n"
bgstack15