fix stripCommentTag
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user