mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
Allow tags to be enclosed in double quotes
Closes #159 Signed-off-by: Shaun Ruffell <sruffell@sruffell.net>
This commit is contained in:
parent
fd6d57dbc2
commit
0460656afe
4 changed files with 9 additions and 7 deletions
|
@ -54,11 +54,6 @@ std::string escape (const std::string& input, int c)
|
|||
////////////////////////////////////////////////////////////////////////////////
|
||||
std::string quoteIfNeeded (const std::string& input)
|
||||
{
|
||||
if (input[0] == '"' || input[0] == '\'')
|
||||
{
|
||||
return input;
|
||||
}
|
||||
|
||||
auto quote = input.find ('"');
|
||||
auto space = input.find (' ');
|
||||
auto op = input.find_first_of ("+-/()<^!=~_%");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue