Episode: Fixed Parsing Backslash in Name
This commit is contained in:
parent
98e8e89c90
commit
229327bf37
|
@ -102,7 +102,7 @@ namespace dropout_dl {
|
||||||
char c = str[i];
|
char c = str[i];
|
||||||
|
|
||||||
// Skip these
|
// Skip these
|
||||||
if (c == '?' || c == ':') {
|
if (c == '?' || c == ':' || c == '\\') {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
// Replace these with dashes
|
// Replace these with dashes
|
||||||
|
@ -254,7 +254,12 @@ namespace dropout_dl {
|
||||||
|
|
||||||
|
|
||||||
int j;
|
int j;
|
||||||
for (j = 0; meta_data[i + j] != '"' && i + j < meta_data.size(); j++);
|
for (j = 0; meta_data[i + j] != '"' && i + j < meta_data.size(); j++) {
|
||||||
|
// skip checking for quotes if prefaced by a forward slash
|
||||||
|
if (meta_data[i + j] == '\\') {
|
||||||
|
j++;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return meta_data.substr(i, j);
|
return meta_data.substr(i, j);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue