add kschg

This commit is contained in:
philipp 2023-11-09 13:14:58 +01:00
parent 947c75e4cc
commit d27bf9e1a4
2 changed files with 10 additions and 1 deletions

View File

@ -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 {

View File

@ -42,7 +42,7 @@ impl From<roxmltree::Error> for Error {
fn main() {
env_logger::init();
let law = LawBuilder::new("MSchG");
let law = LawBuilder::new("KSchG");
law.to_md();
}