From 9b00fe9f7353df50c67966141a5f024ec9b95208 Mon Sep 17 00:00:00 2001 From: ST-DDT Date: Thu, 23 Nov 2023 20:03:32 +0100 Subject: infra(unicorn): prefer-code-point (#2509) --- src/modules/string/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modules/string') diff --git a/src/modules/string/index.ts b/src/modules/string/index.ts index 4240a6f1..6428153d 100644 --- a/src/modules/string/index.ts +++ b/src/modules/string/index.ts @@ -674,7 +674,7 @@ export class StringModule extends SimpleModuleBase { let returnString = ''; while (returnString.length < length) { - returnString += String.fromCharCode( + returnString += String.fromCodePoint( this.faker.number.int(charCodeOption) ); } -- cgit v1.2.3