Skip to content

Commit 56c58b2

Browse files
committed
Use a slightly more robust detection of path-based xrefs
1 parent 5c36551 commit 56c58b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/validation.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ mod content {
417417
// Check only those xrefs that have labels. Skip unsupported, label-less xrefs, which are reported elsewhere.
418418
let xref_regex = Regex::new(r"xref:(\S+)\[\S+.*?\]").unwrap();
419419
// This regex checks only the captured content of the xref.
420-
let path_based_regex = Regex::new(r"\S+\.(?:adoc|asciidoc)").unwrap();
420+
let path_based_regex = Regex::new(r"\S+\.(?:adoc|asciidoc)$").unwrap();
421421

422422
let mut issues = Vec::new();
423423

0 commit comments

Comments
 (0)