fix(core): don't remove double quotes when parsing versit strings

Fixes #3530
This commit is contained in:
Francis Lachapelle committed 2022-06-28 16:54:41 -04:00
1 parent 9fb3705005
commit d99aa82a31
2 files changed
+4 -16

No files matched your search

+3 -15
View File
@@ -69,7 +69,7 @@
NSString *newString;
unichar *characters, *currentChar, *lastChar, *newPart, *newCurrentChar;
NSUInteger max;
BOOL isEscaped, isQuoted;
BOOL isEscaped;
values = [NSMutableArray array];
@@ -87,17 +87,7 @@
while (currentChar < lastChar)
{
if (isQuoted)
{
if (*currentChar == '"')
isQuoted = NO;
else
{
*newCurrentChar = *currentChar;
newCurrentChar++;
}
}
else if (isEscaped)
if (isEscaped)
{
if (*currentChar == 'n' || *currentChar == 'N')
*newCurrentChar = '\n';
@@ -114,9 +104,7 @@
}
else
{
if (*currentChar == '"')
isQuoted = YES;
else if (*currentChar == '\\')
if (*currentChar == '\\')
isEscaped = YES;
else if (*currentChar == ',')
{