diff options
| author | ST-DDT <[email protected]> | 2023-10-09 17:40:13 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-10-09 15:40:13 +0000 |
| commit | a1ec9298ed2f543e59957fcc5b08a80a81a526e0 (patch) | |
| tree | c586de2b7f1b1da04b53ee427be9840000fc7ca8 /src/modules/git | |
| parent | 1e01e5379290968e26487373c1205b611301ab42 (diff) | |
| download | faker-a1ec9298ed2f543e59957fcc5b08a80a81a526e0.tar.xz faker-a1ec9298ed2f543e59957fcc5b08a80a81a526e0.zip | |
infra(unicorn): no-hex-escape (#2440)
Diffstat (limited to 'src/modules/git')
| -rw-r--r-- | src/modules/git/index.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/modules/git/index.ts b/src/modules/git/index.ts index 6a48efc7..ec73c149 100644 --- a/src/modules/git/index.ts +++ b/src/modules/git/index.ts @@ -2,6 +2,8 @@ import type { Faker } from '../..'; import { bindThisToMemberFunctions } from '../../internal/bind-this-to-member-functions'; import { deprecated } from '../../internal/deprecated'; +const nbsp = '\u00a0'; + /** * Module to generate git related entries. * @@ -103,7 +105,7 @@ export class GitModule { `Author: ${user} <${email}>`, `Date: ${this.commitDate({ refDate })}`, '', - `\xa0\xa0\xa0\xa0${this.commitMessage()}`, + `${nbsp.repeat(4)}${this.commitMessage()}`, // to end with a eol char '' ); |
