diff options
| author | Leyla Jähnig <[email protected]> | 2022-10-18 19:29:43 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-10-18 19:29:43 +0200 |
| commit | 79858fea203bce7ada9e9bcc7751f6ab25123977 (patch) | |
| tree | 440e365a55814763662392fca10c899acfa2c468 /src/modules/git | |
| parent | c977dbc79da0589557205ad2a95befa1cd6a9dea (diff) | |
| download | faker-79858fea203bce7ada9e9bcc7751f6ab25123977.tar.xz faker-79858fea203bce7ada9e9bcc7751f6ab25123977.zip | |
feat(string): move methods to new module (#1155)
Co-authored-by: Eric Cheng <[email protected]>
Co-authored-by: ST-DDT <[email protected]>
Co-authored-by: Shinigami92 <[email protected]>
Diffstat (limited to 'src/modules/git')
| -rw-r--r-- | src/modules/git/index.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/modules/git/index.ts b/src/modules/git/index.ts index cd9e7de0..78cf0c68 100644 --- a/src/modules/git/index.ts +++ b/src/modules/git/index.ts @@ -100,9 +100,9 @@ export class GitModule { * @since 5.0.0 */ commitSha(): string { - return this.faker.datatype.hexadecimal({ + return this.faker.string.hexadecimal({ length: 40, - case: 'lower', + casing: 'lower', prefix: '', }); } @@ -116,9 +116,9 @@ export class GitModule { * @since 5.0.0 */ shortSha(): string { - return this.faker.datatype.hexadecimal({ + return this.faker.string.hexadecimal({ length: 7, - case: 'lower', + casing: 'lower', prefix: '', }); } |
