Make it case-insensitive
This commit is contained in:
parent
5ee1d956b6
commit
642bed601f
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue