From 831a3c2bab57b948235c3ff08d14035946d17d7d Mon Sep 17 00:00:00 2001 From: Yann Leboulanger <asterix@lagaule.org> Date: Tue, 10 Aug 2010 22:38:36 +0200 Subject: [PATCH] Partially revert [e9c73ef32827]. see #5675, Fixes #5840 --- src/gui_interface.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gui_interface.py b/src/gui_interface.py index ac6d4cd3f7..fd16f2d97b 100644 --- a/src/gui_interface.py +++ b/src/gui_interface.py @@ -2432,7 +2432,8 @@ class Interface: # FIXME: recognize xmpp: and treat it specially links = r"((?<=\()[A-Za-z][A-Za-z0-9\+\.\-]*:"\ r"([\w\.\-_~:/\?#\[\]@!\$&'\(\)\*\+,;=]|%[A-Fa-f0-9]{2})+"\ - r"(?=\)))|(\w[\w\+\.\-]*:(\S|%[A-Fa-f0-9]{2})+)" + r"(?=\)))|([A-Za-z][A-Za-z0-9\+\.\-]*:([\w\.\-_~:/\?#\[\]@!\$"\ + r"&'\(\)\*\+,;=]|%[A-Fa-f0-9]{2})+)" # 2nd one: at_least_one_char@at_least_one_char.at_least_one_char mail = r'\bmailto:\S*[^\s\W]|' r'\b\S+@\S+\.\S*[^\s\W]' -- GitLab