From e3ae480f6b5015d167316edff026bd50372ab2b6 Mon Sep 17 00:00:00 2001 From: Raymon Zutekouw Date: Sun, 3 Aug 2025 22:27:27 +0200 Subject: [PATCH] Allow property usage templates of any language - as long as it contains "Wikidata" --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 61c9237..31a25ad 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -8,7 +8,7 @@ pub mod wikipedia_infobox_analyzer { pub fn extract_used_properties_from_template(template: String) -> Vec { let mut lines = template.lines(); let used = lines - .find(|line| line.starts_with("{{Gebruikt Wikidata")) + .find(|line| line.starts_with("{{") && line.contains("Wikidata|")) .expect("Template should have a line declaring which properties are used"); // The properties are listed inside the template with their number: P1|P2|P...