clean-css
Advanced tools
+5
-0
@@ -0,1 +1,6 @@ | ||
| 0.8.1 / 2012-10-28 | ||
| ================== | ||
| * Added better zeros processing for rect(...) syntax (clip property). | ||
| 0.8.0 / 2012-10-21 | ||
@@ -2,0 +7,0 @@ ================== |
+6
-2
@@ -144,3 +144,4 @@ var util = require('util'); | ||
| // zero + unit to zero | ||
| replace(/(\s|:)0(px|em|ex|cm|mm|in|pt|pc|%)/g, '$1' + '0'); | ||
| replace(/(\s|:|,)0(px|em|ex|cm|mm|in|pt|pc|%)/g, '$1' + '0'); | ||
| replace(/rect\(0(px|em|ex|cm|mm|in|pt|pc|%)/g, 'rect(0'); | ||
@@ -154,5 +155,8 @@ // none to 0 | ||
| // multiple zeros into one | ||
| replace(/0 0 0 0([^\.])/g, '0$1'); | ||
| replace(/:0 0 0 0([^\.])/g, ':0$1'); | ||
| replace(/([: ,=\-])0\.(\d)/g, '$1.$2'); | ||
| // restore rect(...) zeros syntax for 4 zeros | ||
| replace(/rect\(\s?0(\s|,)0[ ,]0[ ,]0\s?\)/g, 'rect(0$10$10$10)'); | ||
| // empty elements | ||
@@ -159,0 +163,0 @@ if (options.removeEmpty) |
+1
-1
@@ -11,3 +11,3 @@ { | ||
| }, | ||
| "version": "0.8.0", | ||
| "version": "0.8.1", | ||
| "main": "index.js", | ||
@@ -14,0 +14,0 @@ "bin": { |
+21
-0
@@ -232,2 +232,23 @@ var vows = require('vows'), | ||
| 'div{padding:0 0 0 .5em}' | ||
| ], | ||
| 'rect zeros #1': 'div{clip:rect(0 0 0 0)}', | ||
| 'rect zeros #2': [ | ||
| 'div{clip:rect(0px 0px 0px 0px)}', | ||
| 'div{clip:rect(0 0 0 0)}' | ||
| ], | ||
| 'rect zeros #3': [ | ||
| 'div{clip:rect( 0px 0px 0px 0px )}', | ||
| 'div{clip:rect(0 0 0 0)}' | ||
| ], | ||
| 'rect zeros #4': [ | ||
| 'div{clip:rect(0px, 0px, 0px, 0px)}', | ||
| 'div{clip:rect(0,0,0,0)}' | ||
| ], | ||
| 'rect zeros #5': [ | ||
| 'div{clip:rect(0.5% 0px 0px 0px)}', | ||
| 'div{clip:rect(0.5% 0 0 0)}' | ||
| ], | ||
| 'rect zeros #6': [ | ||
| 'div{clip:rect(0px 0px 0px 10px)}', | ||
| 'div{clip:rect(0 0 0 10px)}' | ||
| ] | ||
@@ -234,0 +255,0 @@ }), |
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
717755
0.12%18027
0.13%