From a1ec9298ed2f543e59957fcc5b08a80a81a526e0 Mon Sep 17 00:00:00 2001 From: ST-DDT Date: Mon, 9 Oct 2023 17:40:13 +0200 Subject: infra(unicorn): no-hex-escape (#2440) --- src/modules/git/index.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/modules/git') 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 '' ); -- cgit v1.2.3