Skip to content

Commit a7ec87c

Browse files
authored
fix: state.pos increase accidently (#12)
1 parent d8e0851 commit a7ec87c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/parser_inline.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,8 @@ ParserInline.prototype.tokenize = function (state) {
142142
continue;
143143
}
144144

145-
state.pending += state.src[state.pos++];
145+
state.pending += state.src[state.pos];
146+
state.pos++;
146147
}
147148

148149
if (state.pending) {

0 commit comments

Comments
 (0)