diff --git a/src/core/operations/NormaliseUnicode.mjs b/src/core/operations/NormaliseUnicode.mjs index 7de8625f..80d3be3c 100644 --- a/src/core/operations/NormaliseUnicode.mjs +++ b/src/core/operations/NormaliseUnicode.mjs @@ -51,7 +51,7 @@ class NormaliseUnicode extends Operation { case "NFKD": return unorm.nfkd(input); case "NFKC": - return unorm.nfc(input); + return unorm.nfkc(input); default: throw new OperationError("Unknown Normalisation Form"); } diff --git a/tests/operations/tests/NormaliseUnicode.mjs b/tests/operations/tests/NormaliseUnicode.mjs index 78a41845..1166be7d 100644 --- a/tests/operations/tests/NormaliseUnicode.mjs +++ b/tests/operations/tests/NormaliseUnicode.mjs @@ -42,7 +42,7 @@ TestRegister.addTests([ }, { name: "Normalise Unicode - NFKC", input: "\u00c7\u0043\u0327\u2160", - expectedMatch: /\u00C7\u00C7\u2160/, + expectedMatch: /\u00C7\u00C7I/, recipeConfig: [ { op: "Normalise Unicode",