Skip to content

Commit

Permalink
tier-check: Check for lines with '[' such as those containing links
Browse files Browse the repository at this point in the history
  • Loading branch information
badboy committed May 29, 2021
1 parent 2f1372b commit aa1b127
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tools/tier-check/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ fn main() {
let doc_targets_md = std::fs::read_to_string(&src).expect("failed to read input source");
let doc_targets: HashSet<_> = doc_targets_md
.lines()
.filter(|line| line.starts_with('`') && line.contains('|'))
.filter(|line| line.starts_with(&['`', '['][..]) && line.contains('|'))
.map(|line| line.split('`').skip(1).next().expect("expected target code span"))
.collect();

Expand Down

0 comments on commit aa1b127

Please sign in to comment.