Unverified Commit 7ef02019 authored by Tim Neutkens's avatar Tim Neutkens Committed by GitHub

Fix logic bug in sortByPageExts (#83610)

## What?

Fixes a logic bug caught by the code review bot:
https://github.com/vercel/next.js/pull/83555#discussion_r2329668930
parent 318aacca
...@@ -11,7 +11,7 @@ export function sortByPageExts(pageExtensions: PageExtensions) { ...@@ -11,7 +11,7 @@ export function sortByPageExts(pageExtensions: PageExtensions) {
const bExt = extname(b) const bExt = extname(b)
const aNoExt = a.substring(0, a.length - aExt.length) const aNoExt = a.substring(0, a.length - aExt.length)
const bNoExt = a.substring(0, b.length - bExt.length) const bNoExt = b.substring(0, b.length - bExt.length)
if (aNoExt !== bNoExt) return 0 if (aNoExt !== bNoExt) return 0
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment