Skip to content

Commit

Permalink
fix: windows absolute path resolution
Browse files Browse the repository at this point in the history
  • Loading branch information
aorumbayev committed Jan 14, 2025
1 parent 4711c7f commit ca6078b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fileAccessor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit ca6078b

Please sign in to comment.