Skip to content

Commit 7c81223

Browse files
committed
fix: update slug normalization to NFC
1 parent 1019510 commit 7c81223

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/render/slugify.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export function slugify(str) {
1212

1313
let slug = str
1414
.trim()
15-
.normalize('NFKD')
15+
.normalize('NFC')
1616
.replace(/\uFE0F/g, '')
1717
.replace(/[\p{Emoji_Presentation}\p{Extended_Pictographic}]/gu, '')
1818
.replace(/[A-Z]+/g, lower)

0 commit comments

Comments
 (0)