Apply suggestion from @cubic-dev-ai[bot]

Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
This commit is contained in:
Patrick Erichsen 2025-10-17 10:19:15 -07:00 • committed by GitHub
parent 71f97dba8f
commit acad86f263
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -12,7 +12,7 @@ export function resolveInputPath(inputPath: string): string | null {
// Expand tilde paths
let expandedPath = trimmedPath;
if (trimmedPath.startsWith("~/")) {
if (trimmedPath.startsWith("~/") || trimmedPath.startsWith("~\\")) {
expandedPath = path.join(os.homedir(), trimmedPath.slice(2));
} else if (trimmedPath === "~") {
expandedPath = os.homedir();