Skip to content
Snippets Groups Projects
Commit 063be5b2 authored by David Sehnal's avatar David Sehnal
Browse files

trim fix

parent 3352740a
No related branches found
No related tags found
No related merge requests found
...@@ -122,7 +122,7 @@ export function trim(state: State, start: number, end: number) { ...@@ -122,7 +122,7 @@ export function trim(state: State, start: number, end: number) {
let c = data.charCodeAt(s); let c = data.charCodeAt(s);
while (c === 9 || c === 32) c = data.charCodeAt(++s); while (c === 9 || c === 32) c = data.charCodeAt(++s);
c = data.charCodeAt(e); c = data.charCodeAt(e);
while (c === 9 || c === 32) c = data.charCodeAt(--e); while ((c === 9 || c === 32) && e >= s) c = data.charCodeAt(--e);
state.currentTokenStart = s; state.currentTokenStart = s;
state.currentTokenEnd = e + 1; state.currentTokenEnd = e + 1;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment