normalize-url 8.0.1 → 8.0.2

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.
Files changed (2) hide show
  1. package/index.js +1 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -181,7 +181,7 @@ export default function normalizeUrl(urlString, options) {
181
181
  // Decode URI octets
182
182
  if (urlObject.pathname) {
183
183
  try {
184
- urlObject.pathname = decodeURI(urlObject.pathname);
184
+ urlObject.pathname = decodeURI(urlObject.pathname).replace(/\\/g, '%5C');
185
185
  } catch {}
186
186
  }
187
187
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "normalize-url",
3
- "version": "8.0.1",
3
+ "version": "8.0.2",
4
4
  "description": "Normalize a URL",
5
5
  "license": "MIT",
6
6
  "repository": "sindresorhus/normalize-url",