From 3cbeae2f889979318b6f9671d297b3359f22524c Mon Sep 17 00:00:00 2001 From: leo60228 Date: Sat, 1 Jun 2024 01:40:22 -0400 Subject: [PATCH] Don't try to rewrite bare links in HTML attributes --- docs/fix_links.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/fix_links.py b/docs/fix_links.py index 33c9c340338d..70caf98a7fcf 100644 --- a/docs/fix_links.py +++ b/docs/fix_links.py @@ -6,7 +6,7 @@ import re URL_RE = re.compile( - r"(```(?s:.)+?```|`.+?`)|" + r"(```(?s:.)+?```|`.+?`|<.+?>)|" r"\b((?:(?i:ftp|https?)://|(?i:www)\d{0,3}[.])(?:[^\s()<>]+|" r"\(([^\s()<>]+|(\([^\s()<>]+\)))*\))+(?:\(([^\s()<>]+|(\([^\s()" r"<>]+\)))*\)|[^\s`!()\[\]{};:" + r"'" + r'".,<>?«»“”‘’*]))'