Skip to content

Commit

Permalink
Merge pull request #40 from kirlu1/issue-19-case-sensitivity
Browse files Browse the repository at this point in the history
Issue 19 case sensitivity
  • Loading branch information
AlexW00 authored Feb 23, 2024
2 parents ce8e7fb + 2efedec commit b1c61e2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/rs/matching/link_finder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit b1c61e2

Please sign in to comment.