Skip to content
This repository was archived by the owner on Jul 13, 2020. It is now read-only.

Commit 8358e27

Browse files
committed
windows path conversion
1 parent 76d3bbf commit 8358e27

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/common.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export function createSymbol (name) {
1919
}
2020

2121
export function pathToFileUrl (filePath) {
22-
return 'file://' + (isWindows ? '/' : '') + filePath;
22+
return 'file://' + (isWindows ? '/' : '') + (isWindows ? filePath.replace(/\\/g, '/') : filePath);
2323
}
2424

2525
export function fileUrlToPath (fileUrl) {

0 commit comments

Comments
 (0)