Skip to content

Commit

Permalink
Update packages/remix-dev/config/flat-routes.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Pedro Cattori <pcattori@gmail.com>
  • Loading branch information
mcansh and pcattori committed Jan 20, 2023
1 parent a1c2d13 commit 06f5e47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/remix-dev/config/flat-routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ export function isIndexRoute(routeId: string) {
let isFlatFile = !routeId.includes(path.posix.sep);
return isFlatFile
? routeId.endsWith("_index")
: /^(.*)\/index$/.test(routeId);
: /\/index$/.test(routeId);
}

type State =
Expand Down

0 comments on commit 06f5e47

Please sign in to comment.