diff --git a/sat_frontends/tools/strings.py b/sat_frontends/tools/strings.py index f1b45a12..e64c07dc 100644 --- a/sat_frontends/tools/strings.py +++ b/sat_frontends/tools/strings.py @@ -21,7 +21,7 @@ import re # Regexp from http://daringfireball.net/2010/07/improved_regex_for_matching_urls RE_URL = re.compile( - r"""(?i)\b((?:[a-z]{3,}://|(www|ftp)\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}/|mailto:|xmpp:)(?:[^\s()<>]+|\(([^\s()<>]+|(\([^\s()<>]+\)))*\))+(?:\(([^\s()<>]+|(\([^\s()<>]+\)))*\)|[^\s`!()\[\]{};:'".,<>?]))""" + r"""(?i)\b((?:[a-z]{3,}://|(www|ftp)\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}/|mailto:|xmpp:|geo:)(?:[^\s()<>]+|\(([^\s()<>]+|(\([^\s()<>]+\)))*\))+(?:\(([^\s()<>]+|(\([^\s()<>]+\)))*\)|[^\s`!()\[\]{};:'".,<>?]))""" )