mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-22 13:26:10 +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, '\\');
|
||||
break;
|
||||
} else if (*it == '"') {
|
||||
escaped.append(num_backslashes * 2 + 1, '\\');
|
||||
escaped.append((num_backslashes + 1) * 2, '\\');
|
||||
escaped.push_back('"');
|
||||
escaped.push_back(*it);
|
||||
} else {
|
||||
escaped.append(num_backslashes, '\\');
|
||||
|
Loading…
Reference in New Issue
Block a user