Skip to content

Commit

Permalink
bug must replace all
Browse files Browse the repository at this point in the history
  • Loading branch information
aeltorio committed Nov 3, 2024
1 parent c4bc5ce commit 974168f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion username_generator/src/generator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

/**
Expand Down

0 comments on commit 974168f

Please sign in to comment.