diff --git a/src/task.rs b/src/task.rs index 2a858cc..af6a3ef 100644 --- a/src/task.rs +++ b/src/task.rs @@ -164,8 +164,11 @@ impl TaskState { } pub(crate) fn matches_label(&self, label: &str) -> bool { self.state == State::Active - || self.name.as_ref().is_some_and(|n| n == label) - || self.state.to_string() == label + || self + .name + .as_ref() + .is_some_and(|n| n.eq_ignore_ascii_case(label)) + || self.state.to_string().eq_ignore_ascii_case(label) } } impl fmt::Display for TaskState {