mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
CLI2: Bug parsing attribute modfiiers
- Consider 'project.is:home' and 'project:home.garden'. The colon ':' and the dot '.' switch places and change the meaning. This was not caught by the paser. - Removed commented call that is now merged.
This commit is contained in:
parent
fe9891f2f9
commit
9b23eb2d23
1 changed files with 4 additions and 4 deletions
|
@ -519,10 +519,7 @@ void CLI2::prepareFilter (bool applyContext)
|
||||||
desugarFilterPlainArgs ();
|
desugarFilterPlainArgs ();
|
||||||
desugarFilterTags ();
|
desugarFilterTags ();
|
||||||
findStrayModifications ();
|
findStrayModifications ();
|
||||||
/*
|
|
||||||
desugarFilterAttributes ();
|
desugarFilterAttributes ();
|
||||||
desugarFilterAttributeModifiers ();
|
|
||||||
*/
|
|
||||||
desugarFilterPatterns ();
|
desugarFilterPatterns ();
|
||||||
/*
|
/*
|
||||||
insertJunctions (); // Deliberately after all desugar calls.
|
insertJunctions (); // Deliberately after all desugar calls.
|
||||||
|
@ -923,7 +920,10 @@ void CLI2::desugarFilterAttributes ()
|
||||||
std::string mod = "";
|
std::string mod = "";
|
||||||
std::string value = "";
|
std::string value = "";
|
||||||
|
|
||||||
if (dot != std::string::npos)
|
// If the dot appears after the colon, then it is part of the value, and
|
||||||
|
// should be ignored.
|
||||||
|
if (dot != std::string::npos &&
|
||||||
|
dot < colon)
|
||||||
{
|
{
|
||||||
name = raw.substr (0, dot);
|
name = raw.substr (0, dot);
|
||||||
mod = raw.substr (dot + 1, colon - dot - 1);
|
mod = raw.substr (dot + 1, colon - dot - 1);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue