From 52b8992cbf960e001336d59b83c610845ff35860 Mon Sep 17 00:00:00 2001 From: Shinigami Date: Sun, 18 Feb 2024 23:56:40 +0100 Subject: infra(unicorn): prefer-string-replace-all (#2653) --- src/modules/location/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/modules/location') diff --git a/src/modules/location/index.ts b/src/modules/location/index.ts index 0c94317b..54766d8a 100644 --- a/src/modules/location/index.ts +++ b/src/modules/location/index.ts @@ -178,7 +178,7 @@ export class LocationModule extends ModuleBase { buildingNumber(): string { return this.faker.helpers .arrayElement(this.faker.definitions.location.building_number) - .replace(/#+/g, (m) => + .replaceAll(/#+/g, (m) => this.faker.string.numeric({ length: m.length, allowLeadingZeros: false, @@ -274,7 +274,7 @@ export class LocationModule extends ModuleBase { secondaryAddress(): string { return this.faker.helpers .arrayElement(this.faker.definitions.location.secondary_address) - .replace(/#+/g, (m) => + .replaceAll(/#+/g, (m) => this.faker.string.numeric({ length: m.length, allowLeadingZeros: false, -- cgit v1.2.3