Skip to content

Commit

Permalink
Fix normalization on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
valentinpalkovic committed Apr 9, 2024
1 parent 58c9c78 commit 23fce6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/lib/core-common/src/utils/normalize-path.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ import path from 'path';
* normalizePath('path\\to\\file') // => 'path/to/file'
*/
export function normalizePath(p: string) {
return path.normalize(p.replace(/\\/g, '/'));
return path.posix.normalize(p.replace(/\\/g, '/'));
}

0 comments on commit 23fce6f

Please sign in to comment.