mirror of
https://github.com/ncipollo/release-action
synced 2026-09-07 20:04:03 +00:00
7 lines
131 B
TypeScript
7 lines
131 B
TypeScript
import os from "os"
|
|
|
|
export function expandTilde(path: string): string {
|
|
return path.replace(/^~(?=$|\/|\\)/, os.homedir())
|
|
}
|
|
|