aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/model/key_table.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/model/key_table.rs b/src/model/key_table.rs
index ce5888ce..88d7b4ff 100644
--- a/src/model/key_table.rs
+++ b/src/model/key_table.rs
@@ -108,7 +108,8 @@ impl TableSchema for KeyTable {
match filter {
KeyFilter::Deleted(df) => df.apply(entry.deleted.get()),
KeyFilter::Matches(pat) => {
- entry.key_id.starts_with(pat) || entry.name.get().to_lowercase() == pat.to_lowercase()
+ let pat = pat.to_lowercase();
+ entry.key_id.to_lowercase().starts_with(&pat) || entry.name.get().to_lowercase() == pat
}
}
}