Skip to content

Commit

Permalink
Use a slightly more robust detection of path-based xrefs
Browse files Browse the repository at this point in the history
  • Loading branch information
msuchane committed Jul 21, 2021
1 parent 5c36551 commit 56c58b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/validation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ mod content {
// Check only those xrefs that have labels. Skip unsupported, label-less xrefs, which are reported elsewhere.
let xref_regex = Regex::new(r"xref:(\S+)\[\S+.*?\]").unwrap();
// This regex checks only the captured content of the xref.
let path_based_regex = Regex::new(r"\S+\.(?:adoc|asciidoc)").unwrap();
let path_based_regex = Regex::new(r"\S+\.(?:adoc|asciidoc)$").unwrap();

let mut issues = Vec::new();

Expand Down

0 comments on commit 56c58b2

Please sign in to comment.