Socket
Socket
Sign inDemoInstall

minimize

Package Overview
Dependencies
Maintainers
1
Versions
65
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

minimize - npm Package Compare versions

Comparing version 0.4.4 to 0.4.5

2

lib/helpers.js

@@ -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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc