postcss-url
Advanced tools
Comparing version 7.3.1 to 7.3.2
@@ -0,1 +1,5 @@ | ||
# 7.3.2 - 2018-04-03 | ||
Fixed: ignore urls which starts with `~` ([PR##119](https://github.com/postcss/postcss-url/pull/#119)) | ||
# 7.3.1 - 2018-02-25 | ||
@@ -2,0 +6,0 @@ |
{ | ||
"name": "postcss-url", | ||
"version": "7.3.1", | ||
"version": "7.3.2", | ||
"description": "PostCSS plugin to rebase or inline on url().", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -38,3 +38,6 @@ 'use strict'; | ||
const isUrlShouldBeIgnored = (assetUrl, options) => { | ||
return isUrlWithoutPathname(assetUrl) || (assetUrl[0] === '/' && !options.basePath); | ||
const isAbsolutePath = assetUrl[0] === '/'; | ||
const isStartsWithTilde = assetUrl[0] === '~'; | ||
return isUrlWithoutPathname(assetUrl) || ((isAbsolutePath || isStartsWithTilde) && !options.basePath); | ||
}; | ||
@@ -41,0 +44,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
37340
656