From e59555156d253d93dac8b1a41048a9ac788f6041 Mon Sep 17 00:00:00 2001 From: philipp Date: Mon, 19 Feb 2024 16:34:23 +0100 Subject: [PATCH 1/2] add medieng --- Cargo.lock | 10 +++++----- laws/medieng.toml | 20 ++++++++++++++++++++ 2 files changed, 25 insertions(+), 5 deletions(-) create mode 100644 laws/medieng.toml diff --git a/Cargo.lock b/Cargo.lock index 132d67e..453eda0 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -74,9 +74,9 @@ dependencies = [ [[package]] name = "anyhow" -version = "1.0.79" +version = "1.0.80" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "080e9890a082662b09c1ad45f567faeeb47f22b5fb23895fbe1e651e718e25ca" +checksum = "5ad32ce52e4161730f7098c077cd2ed6229b5804ccf99e5366be1ab72a98b4e1" [[package]] name = "autocfg" @@ -534,7 +534,7 @@ dependencies = [ [[package]] name = "risp" version = "0.1.0" -source = "git+https://git.hofer.link/philipp/risp.git#7d216039643741545c041dce44d244ba746140ba" +source = "git+https://git.hofer.link/philipp/risp.git#fac2be0ed4e0fb2903fb376ecc338c065853c142" dependencies = [ "clap", "directories", @@ -589,9 +589,9 @@ dependencies = [ [[package]] name = "ryu" -version = "1.0.16" +version = "1.0.17" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f98d2aa92eebf49b69786be48e4477826b256916e84a57ff2a4f21923b48eb4c" +checksum = "e86697c916019a8588c99b5fac3cead74ec0b4b819707a682fd4d23fa0ce1ba1" [[package]] name = "scopeguard" diff --git a/laws/medieng.toml b/laws/medieng.toml new file mode 100644 index 0000000..6c0a177 --- /dev/null +++ b/laws/medieng.toml @@ -0,0 +1,20 @@ +[law] +id = 10000719 +name = "Mediengesetz" + +[[law.classifiers]] +name = "Abschnitt" +is_root = true +match_function = "contains_case_sensitive" + +[[law.classifiers]] +name = "Unterabschnitt" +is_root = false +match_function = "contains" + +[parser] +remove_strings = [ + "", "", + "", "", + "", "", +] From 2c2590126555acc7d75c58668a99f407a8ed94de Mon Sep 17 00:00:00 2001 From: philipp Date: Mon, 19 Feb 2024 16:41:43 +0100 Subject: [PATCH 2/2] fix abgb --- laws/abgb.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/laws/abgb.toml b/laws/abgb.toml index 88e680e..1432a28 100644 --- a/laws/abgb.toml +++ b/laws/abgb.toml @@ -5,7 +5,7 @@ name = "ABGB" [[law.classifiers]] name = "Theil" is_root = true -match_function = "containsCaseSensitive" +match_function = "contains_case_sensitive" [[law.classifiers]] name = "Abtheilung"