Philipp Hörist pushed to branch master at gajim / gajim


Commits:
5a8289b6 by Philipp Hörist at 2019-08-01T11:22:43Z
Improve Email/JID regex

Fixes #9776

- - - - -


1 changed file:

- gajim/gui_interface.py


Changes:

=====================================
gajim/gui_interface.py
=====================================
@@ -1496,7 +1496,7 @@ class Interface:
         self.emot_and_basic = '%s|%s' % (basic_pattern, emoticons)
 
         # at least one character in 3 parts (before @, after @, after .)
-        self.sth_at_sth_dot_sth = r'\S+@\S+\.\S*[^\s)?]'
+        self.sth_at_sth_dot_sth = 
r'^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+$'
 
         # Invalid XML chars
         self.invalid_XML_chars = '[\x00-\x08]|[\x0b-\x0c]|[\x0e-\x1f]|'\



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/commit/5a8289b690cf700d414b4b6264c27e1b59a6505d

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/gajim/commit/5a8289b690cf700d414b4b6264c27e1b59a6505d
You're receiving this email because of your account on dev.gajim.org.


_______________________________________________
Commits mailing list
[email protected]
https://lists.gajim.org/cgi-bin/listinfo/commits

Reply via email to