Permalink
Browse files

fix stripCommentTag

  • Loading branch information...
1 parent eb7bcd3 commit 161f9510aab78aba83cf75c54c0dafd3a0436a84 @island205 island205 committed Sep 11, 2014
Showing with 2 additions and 2 deletions.
  1. +1 −1 benchmark/file.html
  2. +1 −1 lib/default.js
View
@@ -1466,6 +1466,6 @@ <h1 id="firstHeading" class="firstHeading">XSS Filter Evasion Cheat Sheet</h1>
/* cache key: wiki:resourceloader:filter:minify-js:4:0988d1c874c28d1cb4f83a739d662fea */
}
-</script><!-- Served in 0.063 secs. -->
+</script><!-- Served in 0.063 secs. --><!--
</body>
</html>
View
@@ -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;

0 comments on commit 161f951

Please sign in to comment.