fix [[wikilink]] detection regex

This commit is contained in:
Tomáš Mládek 2021-01-20 23:56:58 +01:00
parent fd867ccb7b
commit 7e530f79a9

View file

@ -399,7 +399,7 @@ impl<'a> Iterator for GardenParser<'a> {
}
fn preprocess_markdown(string: String) -> String {
let double_brackets = Regex::new(r"\[\[(?P<inner>[\w .]+)\]\]").unwrap();
let double_brackets = Regex::new(r"\[\[(?P<inner>[\w\- .]+)\]\]").unwrap();
let finder = LinkFinder::new();
let result = double_brackets