Socket
Socket
Sign inDemoInstall

clean-css

Package Overview
Dependencies
Maintainers
1
Versions
211
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

clean-css - npm Package Compare versions

Comparing version 0.2.5 to 0.2.6

5

History.md

@@ -0,1 +1,6 @@

0.2.6 / 2011-11-27
==================
* Fixed expanding + signs in calc() when mixed up with adjacent (+) selector.
0.2.5 / 2011-11-27

@@ -2,0 +7,0 @@ ==================

2

lib/clean.js

@@ -118,3 +118,3 @@ var sys = require('sys');

// Get the special comments, content content, and spaces inside calc back
replace(/calc\((.+)\)([;\}\w])/, function(match) {
replace(/calc\([^\}]+\}/g, function(match) {
return match.replace(/\+/g, ' + ');

@@ -121,0 +121,0 @@ });

@@ -11,3 +11,3 @@ {

},
"version": "0.2.5",
"version": "0.2.6",
"main": "index.js",

@@ -14,0 +14,0 @@ "bin": {

@@ -134,2 +134,6 @@ var vows = require('vows'),

'label~*+span'
],
'not expand + in selectors mixed with calc methods': [
'div{width:calc(50% + 3em)}div + div{width:100%}div:hover{width:calc(50% + 4em)}* > div {border:1px solid #f0f}',
'div{width:calc(50% + 3em)}div+div{width:100%}div:hover{width:calc(50% + 4em)}*>div{border:1px solid #f0f}'
]

@@ -136,0 +140,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