diff --git a/src/rs/matching/link_finder.rs b/src/rs/matching/link_finder.rs index 1dc10f6..8756a35 100644 --- a/src/rs/matching/link_finder.rs +++ b/src/rs/matching/link_finder.rs @@ -80,7 +80,8 @@ fn build_link_finder(target_note: &Note) -> LinkFinder { let regex_string = concat_as_regex_string(&escaped_search_strings); //log(&format!("Regex string: {}", regex_string)); - Regex::new(&*format!(r"{}", regex_string)).unwrap() + // "(?i)" makes the expression case insensitive + Regex::new(&*format!(r"(?i){}", regex_string)).unwrap() } /// Finds all link candidates in the provided note.