Skip to content

Commit 77e0ab0

Browse files
author
Kalle Ott
committed
fixed regex for backslash replacement to replace all backslashes
1 parent ecc3bdd commit 77e0ab0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

index.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,7 @@ module.exports = function router (routesDir, config) {
6262

6363
route.path = '/' + path.relative(routesDir, routeFile).replace(extPattern, '')
6464
//Fix issue with windows paths
65-
route.path = route.path.replace(/\\/, '/')
66-
65+
route.path = route.path.replace(/\\/g, '/')
6766
}
6867
return route
6968
})

0 commit comments

Comments
 (0)