mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Fix #8321: linkcheck: `tel:` schema hyperlinks are detected as errors
This commit is contained in:
1
CHANGES
1
CHANGES
@@ -57,6 +57,7 @@ Bugs fixed
|
|||||||
* #8239: Failed to refer a token in productionlist if it is indented
|
* #8239: Failed to refer a token in productionlist if it is indented
|
||||||
* #8268: linkcheck: Report HTTP errors when ``linkcheck_anchors`` is ``True``
|
* #8268: linkcheck: Report HTTP errors when ``linkcheck_anchors`` is ``True``
|
||||||
* #8245: linkcheck: take source directory into account for local files
|
* #8245: linkcheck: take source directory into account for local files
|
||||||
|
* #8321: linkcheck: ``tel:`` schema hyperlinks are detected as errors
|
||||||
* #6914: figure numbers are unexpectedly assigned to uncaptioned items
|
* #6914: figure numbers are unexpectedly assigned to uncaptioned items
|
||||||
|
|
||||||
Testing
|
Testing
|
||||||
|
|||||||
@@ -213,7 +213,7 @@ class CheckExternalLinksBuilder(Builder):
|
|||||||
|
|
||||||
def check(docname: str) -> Tuple[str, str, int]:
|
def check(docname: str) -> Tuple[str, str, int]:
|
||||||
# check for various conditions without bothering the network
|
# check for various conditions without bothering the network
|
||||||
if len(uri) == 0 or uri.startswith(('#', 'mailto:')):
|
if len(uri) == 0 or uri.startswith(('#', 'mailto:', 'tel:')):
|
||||||
return 'unchecked', '', 0
|
return 'unchecked', '', 0
|
||||||
elif not uri.startswith(('http:', 'https:')):
|
elif not uri.startswith(('http:', 'https:')):
|
||||||
if uri_re.match(uri):
|
if uri_re.match(uri):
|
||||||
|
|||||||
Reference in New Issue
Block a user