Skip to content

Commit 5b30cc1

Browse files
committed
Detect relative urls in tidy check
1 parent b8499e0 commit 5b30cc1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/tools/tidy/src/style.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,11 @@ fn line_is_url(line: &str) -> bool {
7979
=> state = EXP_URL,
8080

8181
(EXP_LINK_LABEL_OR_URL, w)
82-
if w.starts_with("http://") || w.starts_with("https://")
82+
if w.starts_with("http://") || w.starts_with("https://") || w.starts_with("../")
8383
=> state = EXP_END,
8484

8585
(EXP_URL, w)
86-
if w.starts_with("http://") || w.starts_with("https://")
86+
if w.starts_with("http://") || w.starts_with("https://") || w.starts_with("../")
8787
=> state = EXP_END,
8888

8989
(_, _) => return false,

0 commit comments

Comments
 (0)