From 7e530f79a958350ee6314730ce3a115e1cec301d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Ml=C3=A1dek?= Date: Wed, 20 Jan 2021 23:56:58 +0100 Subject: [PATCH] fix [[wikilink]] detection regex --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 30d8ee2..5b1623a 100644 --- a/src/main.rs +++ b/src/main.rs @@ -399,7 +399,7 @@ impl<'a> Iterator for GardenParser<'a> { } fn preprocess_markdown(string: String) -> String { - let double_brackets = Regex::new(r"\[\[(?P[\w .]+)\]\]").unwrap(); + let double_brackets = Regex::new(r"\[\[(?P[\w\- .]+)\]\]").unwrap(); let finder = LinkFinder::new(); let result = double_brackets