Skip to content

Commit

Permalink
Correctly consume to exit state
Browse files Browse the repository at this point in the history
  • Loading branch information
jhy committed Aug 14, 2021
1 parent 42da864 commit 0dcb53a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/org/jsoup/parser/TokeniserState.java
Original file line number Diff line number Diff line change
Expand Up @@ -911,6 +911,7 @@ void read(Tokeniser t, CharacterReader r) {
// todo: replace nullChar with replaceChar
char next = r.current();
if (next == '>' || next == eof) {
r.consume();
t.emitCommentPending();
t.transition(Data);
}
Expand Down

0 comments on commit 0dcb53a

Please # to comment.