Skip to content

Commit eb1ef70

Browse files
authored
fix(ios): use bufferLength instead of originalLength for contentEnd (#219)
1 parent 6539a7c commit eb1ef70

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ios/input/ENRMInputParser.mm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ @implementation ENRMInputParser
270270
}
271271

272272
NSUInteger contentStart = mapByteOffset(byteMap, spanInfo.contentStartByteOffset, context.bufferLength);
273-
NSUInteger contentEnd = mapByteOffset(byteMap, spanInfo.contentEndByteOffset, context.originalLength);
273+
NSUInteger contentEnd = mapByteOffset(byteMap, spanInfo.contentEndByteOffset, context.bufferLength);
274274
styledRange.contentRange = NSMakeRange(contentStart, contentEnd - contentStart);
275275

276276
NSUInteger openStart = mapByteOffset(byteMap, spanInfo.openingDelimiterByteOffset, context.bufferLength);

0 commit comments

Comments
 (0)