mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-04-20 00:02:55 +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;
|
std::ostringstream str;
|
||||||
|
|
||||||
auto isEscaped = false;
|
auto isEscaped = false;
|
||||||
for(auto c : value)
|
for(const auto c : value)
|
||||||
{
|
{
|
||||||
if(isEscaped)
|
if(isEscaped)
|
||||||
{
|
{
|
||||||
@ -38,6 +38,7 @@ std::string SequenceLocalizeFileLanguageValue::UnescapeValue(const std::string&
|
|||||||
str << c;
|
str << c;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
isEscaped = false;
|
||||||
}
|
}
|
||||||
else if(c == '\\')
|
else if(c == '\\')
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user