From 2b16c06aded94909563c20da5f87a3b6882501e1 Mon Sep 17 00:00:00 2001 From: GoalSmashers Date: Mon, 27 May 2013 23:36:45 +0200 Subject: [PATCH] Fixed code formatting issues. --- lib/clean.js | 2 +- test/unit-test.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/clean.js b/lib/clean.js index d55930aa..859cf114 100644 --- a/lib/clean.js +++ b/lib/clean.js @@ -432,7 +432,7 @@ var CleanCSS = { tempData.push(data.substring(cursor, nextStart)); var url = data.substring(nextStart + 4, nextEnd).replace(/['"]/g, ''); - if (url[0] != '/' && url.indexOf('data:') != 0 && url.substring(url.length - 4) != '.css') { + if (url[0] != '/' && url.indexOf('data:') !== 0 && url.substring(url.length - 4) != '.css') { url = path.relative(toBase, path.join(fromBase, url)).replace(/\\/g, '/'); } tempData.push('url(' + url + ')'); diff --git a/test/unit-test.js b/test/unit-test.js index 23145265..7f55860b 100644 --- a/test/unit-test.js +++ b/test/unit-test.js @@ -811,11 +811,11 @@ title']", ], 'of a file with a relative resource path': [ "@import url(test/data/partials/three.css);", - ".three{background-image:url(test/data/partials/extra/down.gif)}", + ".three{background-image:url(test/data/partials/extra/down.gif)}" ], 'of a file with an absolute resource path': [ "@import url(test/data/partials/four.css);", - ".four{background-image:url(/partials/extra/down.gif)}", + ".four{background-image:url(/partials/extra/down.gif)}" ], 'of a file with a resource URI': [ "@import url(test/data/partials/five.css);", -- 2.34.1