mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-27 10:07:19 +02:00
Expressions
- Corrected interpretation of integers outside the location of a sequence as a word. - Corrected interpretation of uuids outside the location of a sequence as a word.
This commit is contained in:
parent
62d2dd316b
commit
a9b942e913
1 changed files with 20 additions and 8 deletions
|
@ -244,19 +244,31 @@ void Arguments::categorize ()
|
||||||
}
|
}
|
||||||
|
|
||||||
// <id>[-<id>][,...]
|
// <id>[-<id>][,...]
|
||||||
else if (!found_something_after_sequence &&
|
else if (is_id (arg->first))
|
||||||
is_id (arg->first))
|
|
||||||
{
|
{
|
||||||
found_sequence = true;
|
if (!found_something_after_sequence)
|
||||||
arg->second = "id";
|
{
|
||||||
|
found_sequence = true;
|
||||||
|
arg->second = "id";
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
arg->second = "word";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// <uuid>[,...]
|
// <uuid>[,...]
|
||||||
else if (!found_something_after_sequence &&
|
else if (is_uuid (arg->first))
|
||||||
is_uuid (arg->first))
|
|
||||||
{
|
{
|
||||||
found_sequence = true;
|
if (!found_something_after_sequence)
|
||||||
arg->second = "uuid";
|
{
|
||||||
|
found_sequence = true;
|
||||||
|
arg->second = "uuid";
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
arg->second = "word";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// [+-]tag
|
// [+-]tag
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue