Comparing version 0.4.4 to 0.4.5
@@ -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.4", | ||
"version": "0.4.5", | ||
"description": "Minimize HTML", | ||
@@ -5,0 +5,0 @@ "main": "./lib/minimize", |
@@ -293,3 +293,3 @@ 'use strict'; | ||
it('prepends no whitespace if text begins with interpunction', function () { | ||
it('prepends no whitespace if text starts with interpunction', function () { | ||
html.text.data = '. ' + html.text.data; | ||
@@ -300,2 +300,9 @@ var result = helpers.text(html.text, 'some HTML'); | ||
}); | ||
it('prepends whitespace if text starts with a dash', function () { | ||
html.text.data = '- ' + html.text.data; | ||
var result = helpers.text(html.text, 'some HTML'); | ||
expect(result).to.be.equal(' ' + html.text.data); | ||
}); | ||
}); | ||
@@ -302,0 +309,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
30523
756