re-add r'

This commit is contained in:
Jean-Marie Traissard 2007-03-31 12:22:38 +00:00
parent 8500cbcda7
commit bf05bec320
1 changed files with 2 additions and 2 deletions

View File

@ -1753,8 +1753,8 @@ class Interface:
# \S*[^\s\W] --> in the matching string don't match ? or ) etc.. if at the end # \S*[^\s\W] --> in the matching string don't match ? or ) etc.. if at the end
# so http://be) will match http://be and http://be)be) will match http://be)be # so http://be) will match http://be and http://be)be) will match http://be)be
prefixes = '|'.join(('http://', 'https://', 'gopher://', 'news://', prefixes = '|'.join((r'http://', r'https://', r'gopher://', r'news://',
'ftp://', 'ed2k://', 'irc://', 'magnet:', 'sip:', r'www\.', r'ftp://', r'ed2k://', r'irc://', r'magnet:', r'sip:', r'www\.',
r'ftp\.')) r'ftp\.'))
# NOTE: it's ok to catch www.gr such stuff exist! # NOTE: it's ok to catch www.gr such stuff exist!