Skip to content

Commit 9be1f9e

Browse files
committed
Improve matching of external links to include FTP.
1 parent 7c74ec3 commit 9be1f9e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

preprocess.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ def find_html_files(root):
146146
return html_files
147147

148148
def fix_relative_link(rename_map, target):
149-
if 'http://' in target or 'https://' in target:
149+
if re.match('(ht|f)tps?://', target):
150150
return target
151151

152152
target = urllib.parse.unquote(target)

0 commit comments

Comments
 (0)