From 52b8992cbf960e001336d59b83c610845ff35860 Mon Sep 17 00:00:00 2001 From: Shinigami Date: Sun, 18 Feb 2024 23:56:40 +0100 Subject: infra(unicorn): prefer-string-replace-all (#2653) --- src/modules/system/index.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/modules/system') diff --git a/src/modules/system/index.ts b/src/modules/system/index.ts index 52fc14f5..ee0d2600 100644 --- a/src/modules/system/index.ts +++ b/src/modules/system/index.ts @@ -72,7 +72,10 @@ export class SystemModule extends ModuleBase { ): string { const { extensionCount = 1 } = options; - const baseName = this.faker.word.words().toLowerCase().replace(/\W/g, '_'); + const baseName = this.faker.word + .words() + .toLowerCase() + .replaceAll(/\W/g, '_'); const extensionsStr = this.faker.helpers .multiple(() => this.fileExt(), { count: extensionCount }) -- cgit v1.2.3