Recognize https:// as URL as well.
This commit is contained in:
parent
ce32096661
commit
92c90329d1
|
@ -74,7 +74,7 @@ translate_prog = None
|
||||||
def translate(text):
|
def translate(text):
|
||||||
global translate_prog
|
global translate_prog
|
||||||
if not 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._]+'
|
email = '\<[-a-zA-Z0-9._]+@[-a-zA-Z0-9._]+'
|
||||||
translate_prog = prog = regex.compile(url + '\|' + email)
|
translate_prog = prog = regex.compile(url + '\|' + email)
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue