Skip to content

Commit

Permalink
Fixes backslash issue on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
renkei authored Jun 2, 2023
1 parent 09fed6d commit 199a0dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/fs-routes/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export default function fsRoutes(
.sort(compare)
.map((file) => ({
path: path.resolve(dir, file),
route: '/' + file.replace(options.indexFileRegExp, ''),
route: '/' + file.replace(options.indexFileRegExp, '').replace(/\\/g, '/'),
}));
}

Expand Down

0 comments on commit 199a0dd

Please sign in to comment.