mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
#198: Add '%' to operator list in quote if needed.
Since the Lexer is looking for '%' as operators, it too needs to be quoted in order to allow the data files to be parsed properly.
This commit is contained in:
parent
465d3bd676
commit
01d1142480
1 changed files with 1 additions and 1 deletions
|
@ -59,7 +59,7 @@ std::string quoteIfNeeded (const std::string& input)
|
||||||
|
|
||||||
auto quote = input.find ('"');
|
auto quote = input.find ('"');
|
||||||
auto space = input.find (' ');
|
auto space = input.find (' ');
|
||||||
auto op = input.find_first_of ("+-/()<^!=~_");
|
auto op = input.find_first_of ("+-/()<^!=~_%");
|
||||||
|
|
||||||
if (quote == std::string::npos &&
|
if (quote == std::string::npos &&
|
||||||
space == std::string::npos &&
|
space == std::string::npos &&
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue