const m=(r,t)=>{if(r&&t){const i=Array.isArray(t)?t:t.split(","),u=r.name||"",n=r.type||"",p=n.replace(/\/.*$/,"");return i.some(o=>{const e=o.trim();if(/^\*(\/\*)?$/.test(o))return!0;if(e.charAt(0)==="."){const f=u.toLowerCase(),s=e.toLowerCase();let a=[s];return(s===".jpg"||s===".jpeg")&&(a=[".jpg",".jpeg"]),a.some(c=>f.endsWith(c))}return/\/\*$/.test(e)?p===e.replace(/\/.*$/,""):!!(n===e||/^\w+$/.test(e))})}return!0};export{m as default};
