mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Recognize https:// as URL as well.
This commit is contained in:
parent
ce32096661
commit
92c90329d1
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue