aboutsummaryrefslogtreecommitdiff
path: root/src/modules/string/index.ts
diff options
context:
space:
mode:
authorST-DDT <[email protected]>2023-11-23 20:03:32 +0100
committerGitHub <[email protected]>2023-11-23 20:03:32 +0100
commit9b00fe9f7353df50c67966141a5f024ec9b95208 (patch)
tree685ac4468b0e89855ef5f8fe45f299f2b3416080 /src/modules/string/index.ts
parentaff0f8022d30a132a6945efac44c22688b5fb5b8 (diff)
downloadfaker-9b00fe9f7353df50c67966141a5f024ec9b95208.tar.xz
faker-9b00fe9f7353df50c67966141a5f024ec9b95208.zip
infra(unicorn): prefer-code-point (#2509)
Diffstat (limited to 'src/modules/string/index.ts')
-rw-r--r--src/modules/string/index.ts2
1 files changed, 1 insertions, 1 deletions
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)
);
}