Skip to content

Commit

Permalink
fix(regex): match windows line endings aswell (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
jloewe authored Apr 17, 2023
1 parent 7dfe5b9 commit 8d8fb05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ fn handle_supports(pre: &dyn Preprocessor, sub_args: &ArgMatches) -> ! {
}

lazy_static! {
static ref HEADER_RE: Regex = Regex::new(r"(?P<header>---\n((.+\n)+)---)").unwrap();
static ref HEADER_RE: Regex = Regex::new(r"(?P<header>---\r?\n((.+\r?\n)+)---)").unwrap();
}

/// A pre-processor that removes header between ---
Expand Down

0 comments on commit 8d8fb05

Please sign in to comment.