mirror of
https://github.com/heyman/heynote.git
synced 2025-06-20 09:37:50 +02:00
Remove "optimization" because it can result in a outofbounds error
This commit is contained in:
parent
0d6d5daa40
commit
b35e4840a4
@ -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);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user