add kschg
This commit is contained in:
parent
947c75e4cc
commit
d27bf9e1a4
@ -250,6 +250,15 @@ impl LawBuilder {
|
|||||||
Arc::new(&starts_with_uppercaseletter),
|
Arc::new(&starts_with_uppercaseletter),
|
||||||
));
|
));
|
||||||
classifiers.push(Classifier::new("num", Arc::new(&starts_with_number)));
|
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 {
|
let mut builder = Self {
|
||||||
|
@ -42,7 +42,7 @@ impl From<roxmltree::Error> for Error {
|
|||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
env_logger::init();
|
env_logger::init();
|
||||||
let law = LawBuilder::new("MSchG");
|
let law = LawBuilder::new("KSchG");
|
||||||
|
|
||||||
law.to_md();
|
law.to_md();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user