diff options
author | Mihai Bazon <mihai.bazon@gmail.com> | 2015-03-18 10:09:30 +0200 |
---|---|---|
committer | Mihai Bazon <mihai.bazon@gmail.com> | 2015-03-18 10:11:37 +0200 |
commit | 80d1c8206bf37568e2c9c4fb385ff65fcf935c92 (patch) | |
tree | 467be67caa761e89c286ab8c60067bbc4ed7d340 | |
parent | 7c8c9b94bc5b24a587da8f2c4bac17117fe07490 (diff) | |
download | tracifyjs-80d1c8206bf37568e2c9c4fb385ff65fcf935c92.tar.gz tracifyjs-80d1c8206bf37568e2c9c4fb385ff65fcf935c92.zip |
Fix parsing for U+2028 / U+2029
(they should be treated as whitespace)
-rw-r--r-- | lib/parse.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/parse.js b/lib/parse.js index 0e269ab7..95a9f776 100644 --- a/lib/parse.js +++ b/lib/parse.js @@ -298,7 +298,8 @@ function tokenizer($TEXT, filename, html5_comments) { }; function skip_whitespace() { - while (WHITESPACE_CHARS(peek())) + var ch; + while (WHITESPACE_CHARS(ch = peek()) || ch == "\u2028" || ch == "\u2029") next(); }; |