mirror of
https://github.com/Hopiu/lychee.git
synced 2026-03-17 05:00:26 +00:00
Fix usage test after README.md code fence change (#186)
This commit is contained in:
parent
2d724c2d38
commit
c3513e21ad
1 changed files with 2 additions and 2 deletions
|
|
@ -41,13 +41,13 @@ mod readme {
|
|||
.expect("Invalid utf8 output for `--help`");
|
||||
let readme = load_readme_text();
|
||||
|
||||
const BACKTICKS_OFFSET: usize = 5; // marker: ```sh
|
||||
const BACKTICKS_OFFSET: usize = 3; // marker: ```
|
||||
const NEWLINE_OFFSET: usize = 1;
|
||||
|
||||
let usage_start = BACKTICKS_OFFSET
|
||||
+ NEWLINE_OFFSET
|
||||
+ readme
|
||||
.find("```sh\nUSAGE:\n")
|
||||
.find("```\nUSAGE:\n")
|
||||
.expect("Couldn't find USAGE section in README.md");
|
||||
|
||||
let usage_end = readme[usage_start..]
|
||||
|
|
|
|||
Loading…
Reference in a new issue