diff --git a/build b/build new file mode 100755 index 0000000..446087a --- /dev/null +++ b/build @@ -0,0 +1,2 @@ +browserify lib/index.js > dist/xss.js + diff --git a/dist/xss.js b/dist/xss.js index b563cfc..9740459 100644 --- a/dist/xss.js +++ b/dist/xss.js @@ -352,7 +352,7 @@ function StripTagBody (tags, next) { function stripCommentTag (html) { return html.replace(STRIP_COMMENT_TAG_REGEXP, ''); } -var STRIP_COMMENT_TAG_REGEXP = //gm; +var STRIP_COMMENT_TAG_REGEXP = //g; exports.whiteList = whiteList; diff --git a/package.json b/package.json index 4bcfd1d..cb79790 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "xss", "main": "./lib/index.js", - "version": "0.1.11", + "version": "0.1.12", "description": "Sanitize untrusted HTML (to prevent XSS) with a configuration specified by a Whitelist. 根据白名单过滤HTML(防止XSS攻击)", "author": "leizongmin (http://ucdok.com)", "contributors": [