提交 13f02262 编写于 作者: J Jared Moore

Untildify for Windows (or any platform)

上级 c61c23b4
......@@ -107,11 +107,7 @@ export function tildify(path: string, userHome: string): string {
}
export function untildify(path: string, userHome: string): string {
if (platform.isMacintosh || platform.isLinux) {
path = path.replace(/^~($|\/|\\)/, `${userHome}$1`);
}
return path;
return path.replace(/^~($|\/|\\)/, `${userHome}$1`);
}
/**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册