Comparing version 0.4.2 to 0.4.3
@@ -24,3 +24,3 @@ 'use strict'; | ||
, structural = /pre|textarea|code/ | ||
, interpunction = /[\.,!%;:\-\?]/ | ||
, interpunction = /[\.,!%;:\-\?\$]/ | ||
, start = new RegExp('^' + interpunction.source) | ||
@@ -27,0 +27,0 @@ , end = new RegExp(interpunction.source + '$'); |
{ | ||
"name": "minimize", | ||
"version": "0.4.2", | ||
"version": "0.4.3", | ||
"description": "Minimize HTML", | ||
@@ -5,0 +5,0 @@ "main": "./lib/minimize", |
@@ -7,2 +7,3 @@ { | ||
, "newlines": "<li>We're <a href=\"http://nodejitsu.com\">Nodejitsu</a>, and we can give you scalable,\nfault-tolerant cloud hosting for your Node.js apps - and we're the best you'll\nfind.</li>" | ||
, "spacing": "<strong>npm</strong>. You don't have to worry\n about installing npm since it comes bundled with Node.js.\n\n <pre class=\"copy\">$ <span>npm install jitsu -g</span><a href=\"#\"><s class=\"ss-layers\" role=\"presentation\"></s> copy</a></pre>\n" | ||
, "doctype": { | ||
@@ -9,0 +10,0 @@ "raw": "!doctype html" |
@@ -102,2 +102,9 @@ 'use strict'; | ||
it('should prepend spaces inside structural elements if required', function (done) { | ||
minimize.minimize(html.spacing, function (result) { | ||
expect(result).to.equal("<strong>npm</strong>. You don't have to worry about installing npm since it comes bundled with Node.js.<pre class=\"copy\">$ <span>npm install jitsu -g</span> <a href=\"#\"><s class=\"ss-layers\" role=\"presentation\"></s> copy</a></pre>"); | ||
done(); | ||
}); | ||
}); | ||
it('should be configurable to retain CDATA'); | ||
@@ -104,0 +111,0 @@ }); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
30034
750