mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Bug Fix - description in filter
- The description attribute may now be used in a filter.
This commit is contained in:
parent
6a77d61faa
commit
db0d85f5e7
1 changed files with 8 additions and 2 deletions
10
src/Att.cpp
10
src/Att.cpp
|
@ -317,8 +317,14 @@ bool Att::validNameValue (
|
|||
|
||||
else if (name == "description")
|
||||
{
|
||||
if (value != "" || !noVerticalSpace (value))
|
||||
throw std::string ("The '") + name + "' attribute must not be blank, and must not contain vertical white space.";
|
||||
if (context.cmd.isWriteCommand ())
|
||||
{
|
||||
if (value == "")
|
||||
throw std::string ("The '") + name + "' attribute must not be blank.";
|
||||
|
||||
if (!noVerticalSpace (value))
|
||||
throw std::string ("The '") + name + "' attribute must not contain vertical white space.";
|
||||
}
|
||||
}
|
||||
|
||||
else if (name == "fg" || name == "bg")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue