Recognize https:// as URL as well.

This commit is contained in:
Guido van Rossum 1997-08-18 13:59:41 +00:00
parent ce32096661
commit 92c90329d1
1 changed files with 1 additions and 1 deletions

View File

@ -74,7 +74,7 @@ translate_prog = None
def translate(text):
global translate_prog
if not translate_prog:
url = '\(http\|ftp\)://[^ \t\r\n]*'
url = '\(http\|ftp\|https\)://[^ \t\r\n]*'
email = '\<[-a-zA-Z0-9._]+@[-a-zA-Z0-9._]+'
translate_prog = prog = regex.compile(url + '\|' + email)
else: