normalize-url
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -38,2 +38,3 @@ 'use strict'; | ||
urlObj.search = querystring.stringify(sortKeys(querystring.parse(urlObj.query))); | ||
urlObj.search = decodeURIComponent(urlObj.search); | ||
@@ -49,6 +50,3 @@ // take advantage of many of the Node `url` normalizations | ||
// decode query strings | ||
str = decodeURI(str); | ||
return str; | ||
}; |
{ | ||
"name": "normalize-url", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Normalize a URL", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -20,4 +20,4 @@ # normalize-url [![Build Status](https://travis-ci.org/sindresorhus/normalize-url.svg?branch=master)](https://travis-ci.org/sindresorhus/normalize-url) | ||
normalizeUrl('todomvc.com'); | ||
//=> http://todomvc.com | ||
normalizeUrl('sindresorhus.com'); | ||
//=> http://sindresorhus.com | ||
@@ -24,0 +24,0 @@ normalizeUrl('HTTP://xn--xample-hva.com:80/?b=bar&a=foo'); |
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
3693
38