mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
CLI
- An attribute name may not contains spaces.
This commit is contained in:
parent
d9c4ff0700
commit
5a293b1f28
1 changed files with 4 additions and 0 deletions
|
@ -2205,6 +2205,10 @@ bool CLI::isAttribute (const std::string& raw) const
|
||||||
else
|
else
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
// No spaces in name.
|
||||||
|
if (attr.find (' ') != std::string::npos)
|
||||||
|
return false;
|
||||||
|
|
||||||
std::string::size_type dot = attr.find (".");
|
std::string::size_type dot = attr.find (".");
|
||||||
std::string mod = "";
|
std::string mod = "";
|
||||||
if (dot != std::string::npos)
|
if (dot != std::string::npos)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue