Remove "optimization" because it can result in a outofbounds error

This commit is contained in:
Jonatan Heyman 2023-01-19 13:08:56 +01:00
parent 0d6d5daa40
commit b35e4840a4

View File

@ -35,11 +35,7 @@ export const noteContent = new ExternalTokenizer((input) => {
input.acceptToken(NoteContent, 1); input.acceptToken(NoteContent, 1);
return; return;
} }
if (next !== FIRST_TOKEN_CHAR) { current = input.advance(1);
current = input.advance(2);
} else {
current = input.advance(1);
}
next = input.peek(1); next = input.peek(1);
} }
}); });