export default (text:string)=>{ const dirSlash = process.platform === 'linux' ? '\/' : '\\'; return text?.replace(/(?<=\/Users\/|\/media\/)[^/]+/g, match=>'・'.repeat(match.length)).split(dirSlash).join(dirSlash); }