Skip to content

Commit

Permalink
ignore headings
Browse files Browse the repository at this point in the history
  • Loading branch information
tshepang committed Oct 18, 2022
1 parent 3b2d301 commit d1feea4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ci/semantic-line-breaks/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ fn comply(content: &str) -> Result<String> {
if ignore_re.is_match(line) {
continue;
}
// headings
if line.starts_with('#') {
continue;
}
let line = line.trim_end();
if line.is_empty() {
continue;
Expand Down

0 comments on commit d1feea4

Please sign in to comment.