Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

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.3.0 to 0.3.1

5

History.md

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

0.3.1 / 2011-12-16
==================
* Fixed cleaning up '0 0 0 0' expressions.
0.3.0 / 2011-11-29

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

2

lib/clean.js

@@ -108,3 +108,3 @@ var util = require('util');

replace(/(background):none([;}])/g, '$1:0$2') // background:none to 0
replace(/0 0 0 0/g, '0') // multiple zeros into one
replace(/0 0 0 0([^\.])/g, '0$1') // multiple zeros into one
replace(/([: ,=\-])0\.(\d)/g, '$1.$2')

@@ -111,0 +111,0 @@ replace(/[^\}]+{(;)*}/g, '') // empty elements

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

},
"version": "0.3.0",
"version": "0.3.1",
"main": "index.js",

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

@@ -201,3 +201,12 @@ var vows = require('vows'),

'mixed zeros not changed': 'div{margin:0 0 1px 0}',
'mixed zeros not changed #2': 'div{padding:0 1px 0 0}'
'mixed zeros not changed #2': 'div{padding:0 1px 0 0}',
'mixed zeros not changed #3': 'div{padding:10px 0 0 0}',
'multiple zeros with fractions #1': [
'div{padding:0 0 0 0.5em}',
'div{padding:0 0 0 .5em}'
],
'multiple zeros with fractions #2': [
'div{padding:0 0 0 .5em}',
'div{padding:0 0 0 .5em}'
]
}),

@@ -204,0 +213,0 @@ 'floats': cssContext({

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