fix/word-mute #18

Manually merged
sup39 merged 2 commits from fix/word-mute into main 2024-02-23 20:35:18 +09:00
Showing only changes of commit 478afc6558 - Show all commits

View file

@ -79,7 +79,7 @@ fn check_word_mute_impl(
let text_lower = text.to_lowercase();
muted_word_list
.iter()
.all(|muted_word| text_lower.contains(muted_word))
.all(|muted_word| text_lower.contains(&muted_word.to_lowercase()))
})
}) || muted_patterns.iter().any(|muted_pattern| {
Regex::new(convert_regex(muted_pattern).as_str())