From 343dfb2d5d464965e9a14a1d895f8ed17f26f29a Mon Sep 17 00:00:00 2001 From: Elio Struyf Date: Thu, 16 Nov 2023 15:26:32 +0100 Subject: [PATCH] #711 - Fix character mapping --- src/helpers/SlugHelper.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/helpers/SlugHelper.ts b/src/helpers/SlugHelper.ts index af106a54..de3b7177 100644 --- a/src/helpers/SlugHelper.ts +++ b/src/helpers/SlugHelper.ts @@ -64,6 +64,6 @@ export class SlugHelper { */ private static replaceCharacters(value: string) { const characters = [...value]; - return characters.map((c) => charMap[c] || c).join(''); + return characters.map((c) => (typeof charMap[c] === 'string' ? charMap[c] : c)).join(''); } }