css-loader 5.2.0 → 5.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/dist/utils.js +14 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [5.2.1](https://github.com/webpack-contrib/css-loader/compare/v5.2.0...v5.2.1) (2021-04-09)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* do not crash on unescaped svg data uri ([#1288](https://github.com/webpack-contrib/css-loader/issues/1288)) ([4f289c5](https://github.com/webpack-contrib/css-loader/commit/4f289c5e4df6c666fdf6dd3402560ae74d4bf7ee))
|
|
11
|
+
|
|
5
12
|
## [5.2.0](https://github.com/webpack-contrib/css-loader/compare/v5.1.4...v5.2.0) (2021-03-24)
|
|
6
13
|
|
|
7
14
|
|
package/dist/utils.js
CHANGED
|
@@ -108,10 +108,22 @@ function normalizeUrl(url, isStringValue) {
|
|
|
108
108
|
}
|
|
109
109
|
|
|
110
110
|
if (matchNativeWin32Path.test(url)) {
|
|
111
|
-
|
|
111
|
+
try {
|
|
112
|
+
normalizedUrl = decodeURI(normalizedUrl);
|
|
113
|
+
} catch (error) {// Ignore
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
return normalizedUrl;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
normalizedUrl = unescape(normalizedUrl);
|
|
120
|
+
|
|
121
|
+
try {
|
|
122
|
+
normalizedUrl = decodeURI(normalizedUrl);
|
|
123
|
+
} catch (error) {// Ignore
|
|
112
124
|
}
|
|
113
125
|
|
|
114
|
-
return
|
|
126
|
+
return normalizedUrl;
|
|
115
127
|
}
|
|
116
128
|
|
|
117
129
|
function requestify(url, rootContext) {
|