[Pkg-javascript-commits] [uglifyjs] 01/05: Only drop the BOM when it's the first character.
Jonas Smedegaard
dr at jones.dk
Tue May 19 00:02:52 UTC 2015
This is an automated email from the git hooks/post-receive script.
js pushed a commit to tag v2.4.22
in repository uglifyjs.
commit e637bdaf4e95ce65c1021f7dda7d198054e99e83
Author: Mihai Bazon <mihai.bazon at gmail.com>
Date: Tue May 5 10:11:38 2015 +0300
Only drop the BOM when it's the first character.
Close #704
---
lib/parse.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/parse.js b/lib/parse.js
index 53aaabd..3cc2da5 100644
--- a/lib/parse.js
+++ b/lib/parse.js
@@ -213,7 +213,7 @@ var EX_EOF = {};
function tokenizer($TEXT, filename, html5_comments) {
var S = {
- text : $TEXT.replace(/\uFEFF/g, ''),
+ text : $TEXT.replace(/^\uFEFF/g, ''),
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