Add missing check in cosnume-character HTML stream method

Should only advance location if not reconsuming previous character
This commit is contained in:
iska
2015-11-28 21:08:39 +01:00
parent 60dc6bfc43
commit 3443321459
+5 -3
View File
@@ -130,9 +130,11 @@
{
UTF32Char nextInputCharacter = [self nextInputCharacter];
if (nextInputCharacter == character) {
_location += _consume;
_scanner.scanLocation = _location;
_currentInputCharacter = nextInputCharacter;
if (!_reconsume) {
_location += _consume;
_scanner.scanLocation = _location;
_currentInputCharacter = nextInputCharacter;
}
_reconsume = NO;
return YES;
}