mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Variant
- ::operator_partial was not treating the status field as a special caseless compare, like operator== does.
This commit is contained in:
parent
5c485f6c53
commit
e59a48080c
1 changed files with 5 additions and 1 deletions
|
@ -1065,6 +1065,11 @@ bool Variant::operator_partial (const Variant& other) const
|
|||
case type_string:
|
||||
{
|
||||
right.cast (type_string);
|
||||
|
||||
// Status is always compared caseless.
|
||||
if (left.source () == "status")
|
||||
return compare (left._string, right._string, false);
|
||||
|
||||
int left_len = left._string.length ();
|
||||
int right_len = right._string.length ();
|
||||
|
||||
|
@ -1089,7 +1094,6 @@ bool Variant::operator_partial (const Variant& other) const
|
|||
}
|
||||
|
||||
case type_duration:
|
||||
|
||||
left.cast (type_duration);
|
||||
return left._duration == right._duration;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue