Skip to content

Commit 93a5a64

Browse files
committed
fix: allow routes with . in them
Fixes #163
1 parent 162d9d0 commit 93a5a64

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/runtime/pure.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@ export function toBase64Image(fileName: string, data: string | ArrayBuffer) {
1414
}
1515

1616
export function isInternalRoute(path: string) {
17-
const lastSegment = path.split('/').pop() || path
18-
return lastSegment.includes('.') || path.startsWith('/__') || path.startsWith('@')
17+
return path.startsWith('/_') || path.startsWith('@')
1918
}
2019

2120
function filterIsOgImageOption(key: string) {

0 commit comments

Comments
 (0)