mirror of
https://github.com/jackyzha0/quartz.git
synced 2025-12-23 04:44:05 -06:00
fix unicode string matching to use string.normalize().
This commit is contained in:
parent
9c042dd717
commit
64729211d1
@ -241,7 +241,7 @@ export function transformLink(src: FullSlug, target: string, opts: TransformOpti
|
||||
const matchingFileNames = opts.allSlugs.filter((slug) => {
|
||||
const parts = slug.split("/")
|
||||
const fileName = parts.at(-1)
|
||||
return targetCanonical === fileName
|
||||
return targetCanonical.normalize() === fileName.normalize()
|
||||
})
|
||||
|
||||
// only match, just use it
|
||||
|
||||
Loading…
Reference in New Issue
Block a user