diff --git a/src/helpers/UsernameHelper.ts b/src/helpers/UsernameHelper.ts index 921601b..dc0f8bb 100644 --- a/src/helpers/UsernameHelper.ts +++ b/src/helpers/UsernameHelper.ts @@ -1,4 +1,4 @@ export default (text:string)=>{ const dirSlash = process.platform === 'linux' ? '\/' : '\\'; - return text?.replace(/(?<=\/Users\/|\/media\/)[^/]+/g, match=>'・'.repeat(match.length)).split(dirSlash).join(dirSlash); + return text?.replace(/(?<=\/Users\/|\/home\/|\/media\/)[^/]+/g, match=>'・'.repeat(match.length)).split(dirSlash).join(dirSlash); }