tier-check: Check for lines with '[' such as those containing links
This commit is contained in:
parent
2f1372bbd3
commit
aa1b127281
@ -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();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user