Skip to content

Commit

Permalink
#711 - Fix character mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
estruyf committed Nov 16, 2023
1 parent 9ddaeda commit 343dfb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/helpers/SlugHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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('');
}
}

0 comments on commit 343dfb2

Please sign in to comment.