html-minifier
Advanced tools
Comparing version 3.0.1 to 3.0.2
{ | ||
"name": "html-minifier", | ||
"description": "Highly configurable, well-tested, JavaScript-based HTML minifier.", | ||
"version": "3.0.1", | ||
"version": "3.0.2", | ||
"keywords": [ | ||
@@ -68,3 +68,3 @@ "cli", | ||
"grunt-browserify": "5.0.x", | ||
"grunt-contrib-uglify": "1.0.x", | ||
"grunt-contrib-uglify": "2.0.x", | ||
"grunt-eslint": "19.0.x", | ||
@@ -71,0 +71,0 @@ "phantomjs-prebuilt": "2.1.x", |
@@ -848,4 +848,11 @@ 'use strict'; | ||
uidIgnore = uniqueId(value); | ||
var pattern = new RegExp('^' + uidIgnore + '([0-9]+)$'); | ||
if (options.ignoreCustomComments) { | ||
options.ignoreCustomComments.push(pattern); | ||
} | ||
else { | ||
options.ignoreCustomComments = [pattern]; | ||
} | ||
} | ||
var token = '<!--!' + uidIgnore + ignoredMarkupChunks.length + '-->'; | ||
var token = '<!--' + uidIgnore + ignoredMarkupChunks.length + '-->'; | ||
ignoredMarkupChunks.push(group1); | ||
@@ -1258,3 +1265,3 @@ return token; | ||
if (uidIgnore) { | ||
str = str.replace(new RegExp('<!--!' + uidIgnore + '([0-9]+)-->', 'g'), function(match, index) { | ||
str = str.replace(new RegExp('<!--' + uidIgnore + '([0-9]+)-->', 'g'), function(match, index) { | ||
return ignoredMarkupChunks[+index]; | ||
@@ -1261,0 +1268,0 @@ }); |
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
2015
74993
8
1
0