From ca6078bef037802f895b70d72c19ba0d8f7d7bf1 Mon Sep 17 00:00:00 2001 From: Altynbek Orumbayev Date: Tue, 14 Jan 2025 12:13:34 +0100 Subject: [PATCH] fix: windows absolute path resolution --- src/fileAccessor.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fileAccessor.ts b/src/fileAccessor.ts index 73298a2..d13d835 100644 --- a/src/fileAccessor.ts +++ b/src/fileAccessor.ts @@ -22,7 +22,7 @@ export const workspaceFileAccessor: FileAccessor = { filePathRelativeTo(base: string, filePath: string): string { // Check if filePath is an absolute path if (this.isWindows) { - if (filePath.match(/^[a-zA-Z]:\\/)) { + if (filePath.match(/^[a-zA-Z]:[\\/]/)) { return filePath } } else {