Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 92c9032

Browse files
committed
Recognize https:// as URL as well.
1 parent ce32096 commit 92c9032

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Tools/faqwiz/faqwiz.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def emit(format, *args, **kw):
7474
def translate(text):
7575
global translate_prog
7676
if not translate_prog:
77-
url = '\(http\|ftp\)://[^ \t\r\n]*'
77+
url = '\(http\|ftp\|https\)://[^ \t\r\n]*'
7878
email = '\<[-a-zA-Z0-9._]+@[-a-zA-Z0-9._]+'
7979
translate_prog = prog = regex.compile(url + '\|' + email)
8080
else:

0 commit comments

Comments
 (0)