Skip to content

Commit

Permalink
fixed #1218 - make target search case insensitive
Browse files Browse the repository at this point in the history
  • Loading branch information
Eugeny committed Jan 27, 2025
1 parent fefb8a8 commit e89bc03
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion warpgate-protocol-http/src/api/targets_list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit e89bc03

Please sign in to comment.