query-string
Advanced tools
Comparing version 5.0.0 to 5.0.1
@@ -117,3 +117,7 @@ 'use strict'; | ||
exports.extract = function (str) { | ||
return str.split('?')[1] || ''; | ||
var queryStart = str.indexOf('?'); | ||
if (queryStart === -1) { | ||
return ''; | ||
} | ||
return str.slice(queryStart + 1); | ||
}; | ||
@@ -134,3 +138,3 @@ | ||
str = str.trim().replace(/^(\?|#|&)/, ''); | ||
str = str.trim().replace(/^[?#&]/, ''); | ||
@@ -137,0 +141,0 @@ if (!str) { |
{ | ||
"name": "query-string", | ||
"version": "5.0.0", | ||
"version": "5.0.1", | ||
"description": "Parse and stringify URL query strings", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
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
11414
169