diff --git a/common/src/state/mod.rs b/common/src/state/mod.rs index 419410b71cf..4e512f92915 100644 --- a/common/src/state/mod.rs +++ b/common/src/state/mod.rs @@ -1625,7 +1625,7 @@ impl State { if v.len() < name_prefix.len() { false } else { - v[..(name_prefix.len())].eq_ignore_ascii_case(name_prefix) + v.to_lowercase().starts_with(&name_prefix.to_lowercase()) } };