@dskripchenko/laravel-admin 1.9.2 → 1.9.3

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.
package/dist/index.mjs CHANGED
@@ -19791,9 +19791,9 @@ const Ne = Ue("admin-auth", () => {
19791
19791
  }
19792
19792
  function d(g) {
19793
19793
  return t.value.includes("*") || t.value.includes(g) ? !0 : t.value.some((S) => {
19794
- if (!S.endsWith(".*")) return !1;
19795
- const p = S.slice(0, -1);
19796
- return g.startsWith(p);
19794
+ if (!S.includes("*")) return !1;
19795
+ const p = S.split("*").map((_) => _.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")).join(".*");
19796
+ return new RegExp(`^${p}$`).test(g);
19797
19797
  });
19798
19798
  }
19799
19799
  function h(g) {