[Pkg-javascript-commits] [uglifyjs] 01/02: Treat \uFEFF as whitespace.
Jonas Smedegaard
dr at jones.dk
Thu May 28 18:24:10 UTC 2015
This is an automated email from the git hooks/post-receive script.
js pushed a commit to tag v2.4.23
in repository uglifyjs.
commit bce4307e9e1c22bcc00c83f9b51bb0bdb2f432b0
Author: Mihai Bazon <mihai.bazon at gmail.com>
Date: Wed May 20 16:17:46 2015 +0300
Treat \uFEFF as whitespace.
Fix #714
---
lib/parse.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/parse.js b/lib/parse.js
index 3cc2da5..e65c4fa 100644
--- a/lib/parse.js
+++ b/lib/parse.js
@@ -108,7 +108,7 @@ var OPERATORS = makePredicate([
"||"
]);
-var WHITESPACE_CHARS = makePredicate(characters(" \u00a0\n\r\t\f\u000b\u200b\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000"));
+var WHITESPACE_CHARS = makePredicate(characters(" \u00a0\n\r\t\f\u000b\u200b\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\uFEFF"));
var PUNC_BEFORE_EXPRESSION = makePredicate(characters("[{(,.;:"));
@@ -213,7 +213,7 @@ var EX_EOF = {};
function tokenizer($TEXT, filename, html5_comments) {
var S = {
- text : $TEXT.replace(/^\uFEFF/g, ''),
+ text : $TEXT,
filename : filename,
pos : 0,
tokpos : 0,
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/uglifyjs.git
More information about the Pkg-javascript-commits
mailing list