Skip to content

Commit 17108ef

Browse files
fix: use NFKC even when not case-folding
1 parent d1095fc commit 17108ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ pub fn x520prep(s: &str, case_fold: bool) -> Result<Cow<'_, str>, Error> {
331331
.flat_map(tables::case_fold_for_nfkc)
332332
.collect::<String>()
333333
} else {
334-
mapped.collect::<String>()
334+
mapped.nfkc().collect::<String>()
335335
};
336336

337337
// 4. Prohibit

0 commit comments

Comments
 (0)