diff options
| author | Shinigami <[email protected]> | 2024-02-18 23:56:40 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-02-18 23:56:40 +0100 |
| commit | 52b8992cbf960e001336d59b83c610845ff35860 (patch) | |
| tree | c71db76f3f955a74be4cbcbaa56df77375cb4531 /src/modules/location | |
| parent | ec5609b18c79ea9fc8183ae78e917801e6a8a3f4 (diff) | |
| download | faker-52b8992cbf960e001336d59b83c610845ff35860.tar.xz faker-52b8992cbf960e001336d59b83c610845ff35860.zip | |
infra(unicorn): prefer-string-replace-all (#2653)
Diffstat (limited to 'src/modules/location')
| -rw-r--r-- | src/modules/location/index.ts | 4 |
1 files changed, 2 insertions, 2 deletions
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, |
