Comparing version 1.1.5 to 1.1.6
@@ -145,2 +145,3 @@ (function (global, factory) { | ||
var reg = new RegExp('(^|&)([^&=]+)=([^&]*)(&|$)'); | ||
var s = str ? '?' + this._getQueryFromUrl(str) : loc.search; | ||
@@ -153,4 +154,6 @@ var search = s.substr(1); | ||
while (a[i]) { | ||
var kv = a[i].replace(/(#\w+)$/, '').split('='); | ||
result[decodeURIComponent(kv[0])] = decodeURIComponent(kv[1]); | ||
var r = a[i].match(reg); | ||
if (r != null) { | ||
result[decodeURIComponent(r[2])] = decodeURIComponent(r[3]); | ||
} | ||
i++; | ||
@@ -157,0 +160,0 @@ } |
@@ -15,2 +15,3 @@ const loc = window.location | ||
queryAll (str = '') { | ||
const reg = new RegExp('(^|&)([^&=]+)=([^&]*)(&|$)') | ||
const s = str ? `?${this._getQueryFromUrl(str)}` : loc.search | ||
@@ -23,4 +24,6 @@ const search = s.substr(1) | ||
while (a[i]) { | ||
let kv = a[i].replace(/(#\w+)$/, '').split('=') | ||
result[decodeURIComponent(kv[0])] = decodeURIComponent(kv[1]) | ||
let r = a[i].match(reg) | ||
if (r != null) { | ||
result[decodeURIComponent(r[2])] = decodeURIComponent(r[3]) | ||
} | ||
i++ | ||
@@ -27,0 +30,0 @@ } |
{ | ||
"name": "fe-utils", | ||
"version": "1.1.5", | ||
"version": "1.1.6", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "fe-utils.js", |
@@ -18,2 +18,3 @@ var loc = window.location; | ||
var reg = new RegExp('(^|&)([^&=]+)=([^&]*)(&|$)'); | ||
var s = str ? '?' + this._getQueryFromUrl(str) : loc.search; | ||
@@ -26,4 +27,6 @@ var search = s.substr(1); | ||
while (a[i]) { | ||
var kv = a[i].replace(/(#\w+)$/, '').split('='); | ||
result[decodeURIComponent(kv[0])] = decodeURIComponent(kv[1]); | ||
var r = a[i].match(reg); | ||
if (r != null) { | ||
result[decodeURIComponent(r[2])] = decodeURIComponent(r[3]); | ||
} | ||
i++; | ||
@@ -30,0 +33,0 @@ } |
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
49341
1364