Skip to content

Commit 36186af

Browse files
committed
Merge pull request #9 from ryu2/master
Handle concatenated quoted strings properly
2 parents 5a8b2b2 + bfd8ae4 commit 36186af

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

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)