We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e5a7114 commit 1c10038Copy full SHA for 1c10038
1 file changed
src/gui/mod.rs
@@ -5689,13 +5689,16 @@ mod tests {
5689
}
5690
5691
#[test]
5692
- fn exact_display_match_is_case_insensitive_substring() {
+ fn exact_display_match_uses_pre_normalized_query_substring() {
5693
let cached = CachedSearchEntry {
5694
label_lc: "testingeve123".into(),
5695
desc_lc: String::new(),
5696
action_lc: String::new(),
5697
};
5698
- assert!(LauncherApp::matches_exact_display_text(&cached, "Eve"));
+ assert!(LauncherApp::matches_exact_display_text(
5699
+ &cached,
5700
+ &"Eve".to_lowercase()
5701
+ ));
5702
assert!(LauncherApp::matches_exact_display_text(&cached, "eve"));
5703
assert!(!LauncherApp::matches_exact_display_text(&cached, "night"));
5704
0 commit comments