Remove untildify

This commit is contained in:
Nick Cipollo
2025-12-02 08:29:48 -05:00
parent 23d2cc4c27
commit be9a4fac3a
9 changed files with 74 additions and 54 deletions
+6
View File
@@ -0,0 +1,6 @@
import os from "os"
export function expandTilde(path: string): string {
return path.replace(/^~(?=$|\/|\\)/, os.homedir())
}