Mercurial > libervia-backend
changeset 3107:a754523fc0f6
frontends (tools/strings): added "geo:" scheme in RE_URL
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 03 Jan 2020 17:10:53 +0100 (2020-01-03) |
parents | 7f7cdc6ecfd8 |
children | 07aac71ea31f |
files | sat_frontends/tools/strings.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/sat_frontends/tools/strings.py Fri Jan 03 13:21:27 2020 +0100 +++ b/sat_frontends/tools/strings.py Fri Jan 03 17:10:53 2020 +0100 @@ -21,7 +21,7 @@ # 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`!()\[\]{};:'".,<>?]))""" )