Skip to content

Commit 0294f52

Browse files
committed
FIX: False positive in bad links detection.
1 parent 44056e0 commit 0294f52

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

sphinxlint.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@
159159
# https://docutils.sourceforge.io/docs/ref/rst/restructuredtext.html#toc-entry-44
160160
default_role_re = re.compile(r"(^| )`\w([^`]*?\w)?`($| )")
161161

162-
seems_hyperlink_re = re.compile(r"`[^`]*?(\s?)<https?://[^`]+>`(_?)")
162+
seems_hyperlink_re = re.compile(r"`[^`]+?(\s?)<https?://[^`]+>`(_?)")
163163

164164
leaked_markup_re = re.compile(r"[a-z]::\s|`|\.\.\s*\w+:")
165165

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
This is a valid link: `<http://localhost:8000/>`_.

0 commit comments

Comments
 (0)