mirror of
https://github.com/warp-tech/warpgate.git
synced 2025-09-08 23:54:23 +08:00
fixed #1218 - make target search case insensitive
This commit is contained in:
parent
fefb8a81bb
commit
e89bc036d5
1 changed files with 2 additions and 1 deletions
|
@ -49,7 +49,8 @@ impl Api {
|
|||
};
|
||||
|
||||
if let Some(ref search) = *search {
|
||||
targets.retain(|t| t.name.contains(search))
|
||||
let search = search.to_lowercase();
|
||||
targets.retain(|t| t.name.to_lowercase().contains(&search))
|
||||
}
|
||||
|
||||
let mut targets = stream::iter(targets)
|
||||
|
|
Loading…
Add table
Reference in a new issue