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:
parent
71f97dba8f
commit
acad86f263
1 changed files with 1 additions and 1 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue