Skip to content

Commit c7356e7

Browse files
committed
correct error checking when handling the tentativelyMatchedLength entity
1 parent bf1d818 commit c7356e7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/ch/digitalfondue/jfiveparse/TokenizerState.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1792,7 +1792,7 @@ private static char[] parseEntity(boolean inAttribute, ProcessedInputStream proc
17921792
boolean emitParseError = tentativelyMatchedLength > 1 && tentativelyMatched.at(tentativelyMatchedLength - 1) == Characters.SEMICOLON;
17931793
if (emitParseError) {
17941794
for (int i = 0; emitParseError && i < tentativelyMatchedLength - 1; i++) {
1795-
emitParseError = Common.isAlphaNumericASCII(chr);
1795+
emitParseError = Common.isAlphaNumericASCII(tentativelyMatched.at(i));
17961796
}
17971797
}
17981798

0 commit comments

Comments
 (0)