const a=t=>{if(!t)return"_empty_";let e=t;const r=[{pattern:/</g,replacement:"_lt_"},{pattern:/>/g,replacement:"_gt_"},{pattern:/:/g,replacement:"-"},{pattern:/"/g,replacement:"_qt_"},{pattern:/\//g,replacement:"-"},{pattern:/\\/g,replacement:"-"},{pattern:/\|/g,replacement:"-"},{pattern:/\?/g,replacement:"_q_"},{pattern:/\*/g,replacement:"_ast_"}];for(const n of r)e=e.replace(n.pattern,n.replacement);return e};export{a as sanitizeWindowsFilename};
