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


Commits:
7af1dc66 by André Apitzsch at 2022-09-27T15:14:02+00:00
fix: Styling: Allow dots in local part of email addresses

- - - - -


2 changed files:

- gajim/common/styling.py
- test/no_gui/test_styling.py


Changes:

=====================================
gajim/common/styling.py
=====================================
@@ -44,7 +44,7 @@
 UNQUOTE_RX = re.compile(r'^> |^>', re.M)
 
 URI_RX = r'(?P<uri>([\w-]+://|www[.])[\S()<>]+?(?=[,>]?(\s|\Z)+))'
-ADDRESS_RX = 
r'(?P<address>\b((xmpp|mailto):)?[\w-]*@([\w-]*?\.)+[\w]+([\?].*?(?=([\s\),]|$)))?)'
  # noqa: E501
+ADDRESS_RX = 
r'(?P<address>\b((xmpp|mailto):)?[\w-]+(\.[\w-]+)*@([\w-]*?\.)+[\w]+([\?].*?(?=([\s\),]|$)))?)'
  # noqa: E501
 URI_ADDRESS_RX = URI_RX + '|' + ADDRESS_RX
 
 URI_RX = re.compile(URI_RX)


=====================================
test/no_gui/test_styling.py
=====================================
@@ -326,8 +326,10 @@
     '[email protected]',
     '[email protected]',
     '[email protected]',
+    '[email protected]',
     '[email protected]',
     'mailto:[email protected]',
+    'mailto:[email protected]',
 ]
 
 EMAILS_WITH_TEXT = [



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/7af1dc666fe673723ac5ed5962ae8dbf7eed72b0

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/7af1dc666fe673723ac5ed5962ae8dbf7eed72b0
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