catch gopher://

This commit is contained in:
Nikos Kouremenos 2005-12-09 21:09:42 +00:00
parent ce4957c300
commit 1d0a0d5dee
1 changed files with 2 additions and 2 deletions

View File

@ -1069,8 +1069,8 @@ class Interface:
# \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
prefixes = (r'http://', r'https://', r'news://', r'ftp://', r'ed2k://',
r'magnet:', r'www\.', r'ftp\.')
prefixes = (r'http://', r'https://', r'gopher://', r'news://', r'ftp://',
r'ed2k://', r'magnet:', r'www\.', r'ftp\.')
# NOTE: it's ok to catch www.gr such stuff exist!
#FIXME: recognize xmpp: and treat it specially