diff --git a/Lin/LNLocalizationCollection.m b/Lin/LNLocalizationCollection.m index 2c786d5..36c60d0 100644 --- a/Lin/LNLocalizationCollection.m +++ b/Lin/LNLocalizationCollection.m @@ -101,7 +101,7 @@ - (void)reloadLocalizations __block NSRange keyRange; __block NSRange valueRange; - NSRegularExpression *regularExpression = [NSRegularExpression regularExpressionWithPattern:@"(\"(\\S+.*\\S+)\"|(\\S+.*\\S+))\\s*=\\s*\"(.*)\";$" + NSRegularExpression *regularExpression = [NSRegularExpression regularExpressionWithPattern:@"(\"(\\S+.*\\S+)\"|(\\S+.*\\S+))\\s*=\\s*\"(.*)\";(.*)$" options:0 error:NULL]; @@ -115,7 +115,7 @@ - (void)reloadLocalizations options:0 range:NSMakeRange(0, line.length)]; - if (result.range.location != NSNotFound && result.numberOfRanges == 5) { + if (result.range.location != NSNotFound && result.numberOfRanges >= 5) { entityRange = [result rangeAtIndex:0]; entityRange.location += lineOffset;