mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-04-19 15:52:53 +00:00
Fix localized string parser not handling value escaping properly
This commit is contained in:
parent
4d674fac83
commit
089ed9fe0d
@ -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 == '\\')
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user