This commit is contained in:
RYO KOBAYASHI 2025-12-20 05:36:56 +00:00 committed by GitHub
commit 5842770935
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -241,7 +241,7 @@ export function transformLink(src: FullSlug, target: string, opts: TransformOpti
const matchingFileNames = opts.allSlugs.filter((slug) => { const matchingFileNames = opts.allSlugs.filter((slug) => {
const parts = slug.split("/") const parts = slug.split("/")
const fileName = parts.at(-1) const fileName = parts.at(-1)
return targetCanonical === fileName return targetCanonical.normalize() === fileName.normalize()
}) })
// only match, just use it // only match, just use it