Skip to content

Commit 3b4bca2

Browse files
destykdziraf
authored andcommitted
fix: add forgotten decodeURIComponent
1 parent 838ebd4 commit 3b4bca2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/utils/file-resolver.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,17 @@ export const relativeFilePathResolver = (filePath: string, syntax: RegExp): stri
2323
* Before: \D:\%D0%9D%D0%B8%D0%BA%D0%B8%D1%82%D0%B0\project\dist\components\photo
2424
* After: \D:\Никита\project\dist\components\photo
2525
*/
26-
const resultPath = path.join(path.dirname(executionPath), filePath).replace(/^file:/gi, '')
27-
26+
const resultPath = decodeURIComponent(path.join(path.dirname(executionPath), filePath).replace(/^file:/gi, ''))
27+
2828
/**
2929
* If the separator is a backslash, remove the first one.
3030
* If you do not do this, the file will not be found
31-
*
31+
*
3232
* Required for Windows
3333
*/
3434
if (path.sep === '\\' && resultPath[0] === '\\') {
3535
return resultPath.slice(1)
3636
}
37-
37+
3838
return resultPath
3939
}

0 commit comments

Comments
 (0)