screencopy: fix unescaped quotes in titles (#96)
This commit is contained in:
parent
2f48e65503
commit
b645ab7cce
|
@ -11,6 +11,8 @@
|
||||||
|
|
||||||
std::string sanitizeNameForWindowList(const std::string& name) {
|
std::string sanitizeNameForWindowList(const std::string& name) {
|
||||||
std::string result = name;
|
std::string result = name;
|
||||||
|
if (result[0] == '\"')
|
||||||
|
result[0] = ' ';
|
||||||
for (size_t i = 1; i < result.size(); ++i) {
|
for (size_t i = 1; i < result.size(); ++i) {
|
||||||
if (result[i - 1] == '>' && result[i] == ']')
|
if (result[i - 1] == '>' && result[i] == ']')
|
||||||
result[i] = ' ';
|
result[i] = ' ';
|
||||||
|
|
Loading…
Reference in New Issue