@factoringplus/pl-components-pack-v3 0.5.16-pre-06 → 0.5.16-pre-07

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.
@@ -37836,17 +37836,19 @@ const _sfc_main$p = {
37836
37836
  },
37837
37837
  setup(__props) {
37838
37838
  const props = __props;
37839
+ const escapeRegex = (string3) => string3.replace(/[/\-\\^$*+?.()|[\]{}]/g, "\\$&");
37839
37840
  let reggie;
37840
37841
  let found;
37841
37842
  let machedCase;
37842
37843
  let unMachedCase;
37843
37844
  const matchName = (current) => {
37844
- reggie = new RegExp(props.searchValue, "gi");
37845
+ const regexString = escapeRegex(props.searchValue);
37846
+ reggie = new RegExp(regexString, "gi");
37845
37847
  found = current.search(reggie) !== -1;
37846
- machedCase = current.slice(current.search(reggie), current.search(reggie) + props.searchValue.length);
37848
+ machedCase = current.slice(current.search(reggie), current.search(reggie) + regexString.length);
37847
37849
  unMachedCase = !found ? current : [
37848
37850
  current.slice(0, current.search(reggie)),
37849
- current.slice(current.search(reggie) + props.searchValue.length)
37851
+ current.slice(current.search(reggie) + regexString.length)
37850
37852
  ];
37851
37853
  return !found ? ["", "", unMachedCase] : [unMachedCase[0], machedCase, unMachedCase[1]];
37852
37854
  };
@@ -37859,7 +37861,7 @@ const _sfc_main$p = {
37859
37861
  };
37860
37862
  }
37861
37863
  };
37862
- var markText = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-4b113ec9"]]);
37864
+ var markText = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-cc470b06"]]);
37863
37865
  var uniqid$1 = { exports: {} };
37864
37866
  var __viteBrowserExternal = {};
37865
37867
  var __viteBrowserExternal$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({