fix stripCommentTag

This commit is contained in:
island205
2014-09-11 19:14:27 +08:00
parent eb7bcd395a
commit 161f9510aa
2 changed files with 2 additions and 2 deletions

View File

@@ -351,7 +351,7 @@ function StripTagBody (tags, next) {
function stripCommentTag (html) {
return html.replace(STRIP_COMMENT_TAG_REGEXP, '');
}
var STRIP_COMMENT_TAG_REGEXP = /<!--(.|\s)*?-->/gm;
var STRIP_COMMENT_TAG_REGEXP = /<!--[\s\S]*?-->/g;
exports.whiteList = whiteList;