Skip to content

Commit

Permalink
fix: characters as URL escapes in url (#1013)
Browse files Browse the repository at this point in the history
  • Loading branch information
evilebottnawi committed Dec 10, 2019
1 parent 8e8ab18 commit 60c65e0
Show file tree
Hide file tree
Showing 4 changed files with 850 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/plugins/postcss-url-parser.js
Expand Up @@ -77,7 +77,7 @@ function getUrlsFromValue(value, result, filter, decl) {
}

const splittedUrl = url.split(/(\?)?#/);
let [normalizedUrl] = splittedUrl;
let normalizedUrl = decodeURIComponent(splittedUrl[0]);
const [, singleQuery, hashValue] = splittedUrl;
const hash =
singleQuery || hashValue
Expand Down

0 comments on commit 60c65e0

Please sign in to comment.