diff --git a/src/main.rs b/src/main.rs index 59a8299..b4ac8f8 100644 --- a/src/main.rs +++ b/src/main.rs @@ -64,7 +64,7 @@ fn handle_supports(pre: &dyn Preprocessor, sub_args: &ArgMatches) -> ! { } lazy_static! { - static ref HEADER_RE: Regex = Regex::new(r"(?P
---\n((.+\n)+)---)").unwrap(); + static ref HEADER_RE: Regex = Regex::new(r"(?P
---\r?\n((.+\r?\n)+)---)").unwrap(); } /// A pre-processor that removes header between ---