const c=new Map;function u(e){const r=c.get(e);if(r)return r;const t=e.replace(/\./g,"\\.").replace(/\*/g,".*"),n=new RegExp(`^${t}$`);return c.set(e,n),n}function g(e,r){return r.length===0||r.includes(e)?!0:r.some(t=>t.includes("*")?u(t).test(e):!1)}function o(e,r){return e.filter(t=>!g(t,r))}function x(){c.clear()}export{x as clearRegexCache,o as getInvalidFields,g as isFieldAllowed};
