Skip to content

Commit

Permalink
Don't try to rewrite bare links in HTML attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
leo60228 committed Jun 1, 2024
1 parent 00ab65c commit 3cbeae2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/fix_links.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'".,<>?«»“”‘’*]))'
Expand Down

0 comments on commit 3cbeae2

Please sign in to comment.