Skip to content

Commit

Permalink
fix(locale): add missing secondard address mustash parsing
Browse files Browse the repository at this point in the history
Signed-off-by: KeisukeYamashita <19yamashita15@gmail.com>
  • Loading branch information
KeisukeYamashita committed Jun 2, 2023
1 parent cadc367 commit 3d5a846
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/modules/location/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -284,14 +284,16 @@ export class LocationModule {
* @since 8.0.0
*/
secondaryAddress(): string {
return this.faker.helpers
const format = this.faker.helpers
.arrayElement(this.faker.definitions.location.secondary_address)
.replace(/#+/g, (m) =>
this.faker.string.numeric({
length: m.length,
allowLeadingZeros: false,
})
);

return this.faker.helpers.fake(format);
}

/**
Expand Down

0 comments on commit 3d5a846

Please sign in to comment.