mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Bug #745
- Fixed Bug #745, which allows projects names with spaces, provided the values are quoted (thanks to Duane Waddle). - Added unit test.
This commit is contained in:
parent
76f11cb73c
commit
4f4a04738f
4 changed files with 10 additions and 8 deletions
|
@ -355,13 +355,6 @@ bool Att::validNameValue (
|
|||
name +
|
||||
"\" is not an attribute you may modify directly.";
|
||||
|
||||
// Thirdly, make sure the value has the expected form or values.
|
||||
if (name == "project")
|
||||
{
|
||||
if (!noSpaces (value))
|
||||
throw std::string ("The '") + name + "' attribute may not contain spaces.";
|
||||
}
|
||||
|
||||
else if (name == "priority")
|
||||
{
|
||||
if (value != "")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue