import{isString as t}from"./validateTypes.mjs";function r(t,r){if(!Array.isArray(r))return n(t,r);for(const s of r){const r=n(t,s);if(r)return r}return!1}function n(r,n){return!!n&&(!!t(n)&&((!n.startsWith("/")||!n.endsWith("/"))&&(!!r.includes(n)&&{match:r,pattern:n,substring:n})))}export{r as default};