diff options
| author | Jan-Erik Rediger <janerik@fnordig.de> | 2021-05-28 15:33:09 +0200 |
|---|---|---|
| committer | Jan-Erik Rediger <janerik@fnordig.de> | 2021-05-29 14:43:12 +0200 |
| commit | aa1b127281ec019c65eeddabb7ba7b55b0f55752 (patch) | |
| tree | 0affaf726d1e38a7c728c9caf4ce78f5822f583e /src/tools | |
| parent | 2f1372bbd398f1a38f6e1f993a8e38008243942b (diff) | |
tier-check: Check for lines with '[' such as those containing links
Diffstat (limited to 'src/tools')
| -rw-r--r-- | src/tools/tier-check/src/main.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/tier-check/src/main.rs b/src/tools/tier-check/src/main.rs index 6a492bbff4d..a41e2d6e3aa 100644 --- a/src/tools/tier-check/src/main.rs +++ b/src/tools/tier-check/src/main.rs @@ -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(); |
