Skip to content

Commit

Permalink
Should fix absolute path issue on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacob Clarke committed May 14, 2022
1 parent 9d6ec2f commit 8d2fa23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const askForFilePath = async () =>
const ensureFilePath = async () => {
let answer = await askForFilePath()
while (!answer) answer = await askForFilePath()
const isAbsolutePath = answer.match(/^\//)
const isAbsolutePath = answer.match(/^(\/)|(\w{1}\:)/)
if (!isAbsolutePath) answer = runtimeDir + answer
return answer
}
Expand Down

0 comments on commit 8d2fa23

Please sign in to comment.