Fix localized string parser not handling value escaping properly

This commit is contained in:
Jan 2021-10-01 21:38:36 +02:00
parent 4d674fac83
commit 089ed9fe0d

View File

@ -20,7 +20,7 @@ std::string SequenceLocalizeFileLanguageValue::UnescapeValue(const std::string&
std::ostringstream str;
auto isEscaped = false;
for(auto c : value)
for(const auto c : value)
{
if(isEscaped)
{
@ -38,6 +38,7 @@ std::string SequenceLocalizeFileLanguageValue::UnescapeValue(const std::string&
str << c;
break;
}
isEscaped = false;
}
else if(c == '\\')
{