mirror of
https://github.com/ChrisTitusTech/linutil.git
synced 2024-12-03 18:26:03 +00:00
Compare commits
2 Commits
af2caa8d1a
...
caf795fc8d
Author | SHA1 | Date | |
---|---|---|---|
|
caf795fc8d | ||
|
df81642c9e |
|
@ -93,12 +93,9 @@ impl Filter {
|
|||
} else {
|
||||
let input = self.search_input.iter().collect::<String>().to_lowercase();
|
||||
self.items.iter().find_map(|item| {
|
||||
let item_name_lower = &item.node.name.to_lowercase();
|
||||
if item_name_lower.starts_with(&input) {
|
||||
Some(item_name_lower[input.len()..].to_string())
|
||||
} else {
|
||||
None
|
||||
}
|
||||
let item_name_lower = item.node.name.to_lowercase();
|
||||
(item_name_lower.starts_with(&input))
|
||||
.then_some(item_name_lower[input.len()..].to_string())
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user