mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
CLI2: Corrected str_replace calls
This commit is contained in:
parent
4232f1a599
commit
f0988b52d0
1 changed files with 4 additions and 1 deletions
|
@ -399,6 +399,7 @@ void CLI2::lexArguments ()
|
|||
{
|
||||
bool quoted = Lexer::wasQuoted (_original_args[i].attribute ("raw"));
|
||||
|
||||
// Process single-token arguments.
|
||||
std::string lexeme;
|
||||
Lexer::Type type;
|
||||
Lexer lex (_original_args[i].attribute ("raw"));
|
||||
|
@ -422,11 +423,13 @@ void CLI2::lexArguments ()
|
|||
|
||||
_args.push_back (a);
|
||||
}
|
||||
|
||||
// Process muktiple-token arguments.
|
||||
else
|
||||
{
|
||||
std::string quote = "'";
|
||||
std::string escaped = _original_args[i].attribute ("raw");
|
||||
str_replace (escaped, quote, "\\'");
|
||||
escaped = str_replace (escaped, quote, "\\'");
|
||||
|
||||
std::string::size_type cursor = 0;
|
||||
std::string word;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue