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

@@ -1466,6 +1466,6 @@ $(".tabLink").click( function() {
/* cache key: wiki:resourceloader:filter:minify-js:4:0988d1c874c28d1cb4f83a739d662fea */
}
</script><!-- Served in 0.063 secs. -->
</script><!-- Served in 0.063 secs. --><!--
</body>
</html>

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;