@whitesev/utils 1.1.5 → 1.1.6

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.
@@ -276,7 +276,7 @@ System.register('Utils', [], (function (exports) {
276
276
  let itemSplit = item.split("=");
277
277
  let itemName = itemSplit[0];
278
278
  itemSplit.splice(0, 1);
279
- let itemValue = itemSplit.join("");
279
+ let itemValue = decodeURIComponent(itemSplit.join(""));
280
280
  if (itemName === cookieName) {
281
281
  findValue = {
282
282
  domain: globalThis.location.hostname,
@@ -321,7 +321,7 @@ System.register('Utils', [], (function (exports) {
321
321
  let itemSplit = item.split("=");
322
322
  let itemName = itemSplit[0];
323
323
  itemSplit.splice(0, 1);
324
- let itemValue = itemSplit.join("");
324
+ let itemValue = decodeURIComponent(itemSplit.join(""));
325
325
  let nameRegexp = details.name instanceof RegExp
326
326
  ? details.name
327
327
  : new RegExp("^" + details.name, "g");
@@ -372,7 +372,7 @@ System.register('Utils', [], (function (exports) {
372
372
  let itemSplit = item.split("=");
373
373
  let itemName = itemSplit[0];
374
374
  itemSplit.splice(0, 1);
375
- let itemValue = itemSplit.join("");
375
+ let itemValue = decodeURIComponent(itemSplit.join(""));
376
376
  let nameRegexp = details.name instanceof RegExp
377
377
  ? details.name
378
378
  : new RegExp("^" + details.name, "g");