Skip to content

Commit

Permalink
fix readme scanner
Browse files Browse the repository at this point in the history
  • Loading branch information
stancl committed Nov 27, 2023
1 parent 323758d commit a25a5a8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions samples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,8 @@ def
- todo0 def
- [ ] bar
- [ ] baz

## Another section

- abc
- def
2 changes: 2 additions & 0 deletions src/scan.rs
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,8 @@ pub fn scan_readme_file(path: &Path, entries: &mut Vec<Entry>) -> io::Result<()>

if cleaned_section == "todo" || cleaned_section == "todos" {
in_todo_section = true;
} else {
in_todo_section = false;
}

continue;
Expand Down

0 comments on commit a25a5a8

Please sign in to comment.