From 974168f524f8da2b281bfbd334c96ecf99d06c90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=A6Ltorio?= Date: Sun, 3 Nov 2024 18:31:25 +0100 Subject: [PATCH] bug must replace all --- username_generator/src/generator.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/username_generator/src/generator.ts b/username_generator/src/generator.ts index 1015029..5cf3358 100644 --- a/username_generator/src/generator.ts +++ b/username_generator/src/generator.ts @@ -29,7 +29,7 @@ export interface Lastnames { * @returns the normalized name */ export function normalize(name: string): string { - return name.normalize("NFD").replace("'","_").replace(" ","_").replace(/[\u0300-\u036f]/g, "").toLowerCase(); + return name.normalize("NFD").replace(/'/g,"_").replace(/ /g,"_").replace(/[\u0300-\u036f]/g, "").toLowerCase(); } /**