mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-22 21:36:11 +01:00
Fix escaping of quotes in coverage helper
This commit is contained in:
parent
fc2066bf18
commit
de42f8a93e
@ -29,7 +29,8 @@ std::string escape_arg(const std::string& arg) {
|
|||||||
escaped.append(num_backslashes * 2, '\\');
|
escaped.append(num_backslashes * 2, '\\');
|
||||||
break;
|
break;
|
||||||
} else if (*it == '"') {
|
} else if (*it == '"') {
|
||||||
escaped.append(num_backslashes * 2 + 1, '\\');
|
escaped.append((num_backslashes + 1) * 2, '\\');
|
||||||
|
escaped.push_back('"');
|
||||||
escaped.push_back(*it);
|
escaped.push_back(*it);
|
||||||
} else {
|
} else {
|
||||||
escaped.append(num_backslashes, '\\');
|
escaped.append(num_backslashes, '\\');
|
||||||
|
Loading…
Reference in New Issue
Block a user