diff --git a/Cargo.lock b/Cargo.lock index da36da8..dca6de5 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -19,7 +19,7 @@ checksum = "f26201604c87b1e01bd3d98f8d5d9a8fcbb815e8cedb41ffccbeb4bf593a35fe" [[package]] name = "afrotd" -version = "0.4.0" +version = "0.4.1" dependencies = [ "axum", "axum-extra", diff --git a/Cargo.toml b/Cargo.toml index eb03c9d..57301e2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "afrotd" -version = "0.4.0" +version = "0.4.1" edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/src/parser.rs b/src/parser.rs index 3892c5e..bb11f46 100644 --- a/src/parser.rs +++ b/src/parser.rs @@ -69,7 +69,7 @@ impl RulesParser { ); let re_new_page = Regex::new(r"-?\n\x0C").unwrap(); - let re_section = Regex::new(r"(?s)Abschnitt .*?Artikel").unwrap(); + let re_section = Regex::new(r"(?sm)^Abschnitt .*?Artikel").unwrap(); let re_new_chapter = Regex::new(r"\n\x0C.*\n.*\n\n").unwrap(); text = re_new_page.replace_all(&text, "").to_string();