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

clean-css

Package Overview
Dependencies
Maintainers
2
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 3.4.7 to 3.4.8

5

History.md

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

[3.4.8 / 2015-11-13](https://github.com/jakubpawlowicz/clean-css/compare/v3.4.7...v3.4.8)
==================
* Fixed issue [#676](https://github.com/jakubpawlowicz/clean-css/issues/676) - fuzzy matching unqoted data URIs.
[3.4.7 / 2015-11-10](https://github.com/jakubpawlowicz/clean-css/compare/v3.4.6...v3.4.7)

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

8

lib/urls/reduce.js

@@ -43,6 +43,6 @@ var URL_PREFIX = 'url(';

nextEndAhead = data.indexOf(URL_SUFFIX, nextEnd + 1);
// if it has whitespace then we should be out of URL, otherwise keep iterating
// if it has not but content is not escaped, it has to be quoted so it will be captured
// by either of two clauses above
if (nextEndAhead == -1 || /\s/.test(data.substring(nextEnd, nextEndAhead)))
// if it has whitespace, curly braces, or semicolon then we should be out of URL,
// otherwise keep iterating if it has not but content is not escaped,
// it has to be quoted so it will be captured by either of two clauses above
if (nextEndAhead == -1 || /[\s\{\};]/.test(data.substring(nextEnd, nextEndAhead)))
break;

@@ -49,0 +49,0 @@

{
"name": "clean-css",
"version": "3.4.7",
"version": "3.4.8",
"author": "Jakub Pawlowicz <contact@jakubpawlowicz.com> (http://twitter.com/jakubpawlowicz)",

@@ -5,0 +5,0 @@ "description": "A well-tested CSS minifier",

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