diff options
| author | DivisionByZero <[email protected]> | 2023-03-14 20:30:33 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-03-14 19:30:33 +0000 |
| commit | a9433537c4658b507969b0cd1409d6652569ce6d (patch) | |
| tree | 4d6cf22e5fe5927470977e8319f3236a7a967da3 /src/modules/git | |
| parent | c2b21d836d4dab83ce6cbbcdee1b00c683ad3e40 (diff) | |
| download | faker-a9433537c4658b507969b0cd1409d6652569ce6d.tar.xz faker-a9433537c4658b507969b0cd1409d6652569ce6d.zip | |
refactor(internet): standardize signatures (#1845)
Co-authored-by: ST-DDT <[email protected]>
Co-authored-by: Shinigami <[email protected]>
Diffstat (limited to 'src/modules/git')
| -rw-r--r-- | src/modules/git/index.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/git/index.ts b/src/modules/git/index.ts index bb0bca09..e35ece2b 100644 --- a/src/modules/git/index.ts +++ b/src/modules/git/index.ts @@ -115,9 +115,9 @@ export class GitModule { const firstName = this.faker.person.firstName(); const lastName = this.faker.person.lastName(); const fullName = this.faker.person.fullName({ firstName, lastName }); - const username = this.faker.internet.userName(firstName, lastName); + const username = this.faker.internet.userName({ firstName, lastName }); let user = this.faker.helpers.arrayElement([fullName, username]); - const email = this.faker.internet.email(firstName, lastName); + const email = this.faker.internet.email({ firstName, lastName }); // Normalize user according to https://github.com/libgit2/libgit2/issues/5342 user = user.replace(/^[\.,:;"\\']|[\<\>\n]|[\.,:;"\\']$/g, ''); |
