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

one more trim fix

parent 063be5b2
Branches
Tags
No related merge requests found
......@@ -120,7 +120,7 @@ export function trim(state: State, start: number, end: number) {
let s = start, e = end - 1;
let c = data.charCodeAt(s);
while (c === 9 || c === 32) c = data.charCodeAt(++s);
while ((c === 9 || c === 32) && s <= e) c = data.charCodeAt(++s);
c = data.charCodeAt(e);
while ((c === 9 || c === 32) && e >= s) c = data.charCodeAt(--e);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment