Skip to content

Commit 608863d

Browse files
committed
Only allow long relative urls after a link label
Yellow is indeed a nice color for a bikeshed.
1 parent 5b30cc1 commit 608863d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tools/tidy/src/style.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ 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://") || w.starts_with("../")
82+
if w.starts_with("http://") || w.starts_with("https://")
8383
=> state = EXP_END,
8484

8585
(EXP_URL, w)

0 commit comments

Comments
 (0)