Make it case-insensitive
continuous-integration/drone/push Build was killed Details

This commit is contained in:
Alex 2021-03-15 19:16:42 +01:00
parent 5ee1d956b6
commit 642bed601f
1 changed files with 2 additions and 1 deletions

View File

@ -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
}
}
}