diff --git a/src/law.rs b/src/law.rs index 963d135..1712685 100644 --- a/src/law.rs +++ b/src/law.rs @@ -250,6 +250,15 @@ impl LawBuilder { Arc::new(&starts_with_uppercaseletter), )); classifiers.push(Classifier::new("num", Arc::new(&starts_with_number))); + } else if name == "VVG" { + law_id = Some(20004425); + + classifiers.push(Classifier::new("Abschnitt", Arc::new(&contains)).root()); + } else if name == "KSchG" { + law_id = Some(10002462); + + classifiers.push(Classifier::new("Hauptstück", Arc::new(&contains)).root()); + classifiers.push(Classifier::new("Abschnitt", Arc::new(&contains))); } let mut builder = Self { diff --git a/src/main.rs b/src/main.rs index 2543c25..805ff45 100644 --- a/src/main.rs +++ b/src/main.rs @@ -42,7 +42,7 @@ impl From for Error { fn main() { env_logger::init(); - let law = LawBuilder::new("MSchG"); + let law = LawBuilder::new("KSchG"); law.to_md(); }