mirror of
https://github.com/heyman/heynote.git
synced 2025-08-16 01:27:57 +02:00
Remove "optimization" because it can result in a outofbounds error
This commit is contained in:
@ -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);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user