Skip to content

Commit bfd8ae4

Browse files
committed
Handle concatenated quoted strings properly
1 parent 5a8b2b2 commit bfd8ae4

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

Core/Source/DTLocalizableStringScanner.m

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -288,15 +288,21 @@ - (NSString *)_scanParameter
288288
}
289289
else if (character == '"')
290290
{
291-
quotedString = [self _scanQuotedString];
291+
if (quotedString) {
292+
quotedString = [[quotedString substringToIndex:quotedString.length-1]
293+
stringByAppendingString:[[self _scanQuotedString] substringFromIndex:1]];
294+
}
295+
else {
296+
quotedString = [self _scanQuotedString];
297+
}
292298
}
293299
else
294300
{
295301
_currentIndex++;
296302
}
297303
}
298304

299-
if (quotedString)
305+
if (quotedString)
300306
{
301307
return quotedString;
302308
}

0 commit comments

Comments
 (0)