mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
util: Made quoting more robust
This commit is contained in:
parent
ef9f74a6a0
commit
80e9edb90f
1 changed files with 1 additions and 4 deletions
|
@ -100,10 +100,7 @@ std::string quoteIfNeeded (const std::string& input)
|
|||
else
|
||||
output = input;
|
||||
|
||||
if (space != std::string::npos)
|
||||
output = std::string ("\"") + output + "\"";
|
||||
|
||||
return output;
|
||||
return std::string ("\"") + output + "\"";
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue