aboutsummaryrefslogtreecommitdiff
path: root/src/modules/system
diff options
context:
space:
mode:
authorShinigami <[email protected]>2024-02-18 23:56:40 +0100
committerGitHub <[email protected]>2024-02-18 23:56:40 +0100
commit52b8992cbf960e001336d59b83c610845ff35860 (patch)
treec71db76f3f955a74be4cbcbaa56df77375cb4531 /src/modules/system
parentec5609b18c79ea9fc8183ae78e917801e6a8a3f4 (diff)
downloadfaker-52b8992cbf960e001336d59b83c610845ff35860.tar.xz
faker-52b8992cbf960e001336d59b83c610845ff35860.zip
infra(unicorn): prefer-string-replace-all (#2653)
Diffstat (limited to 'src/modules/system')
-rw-r--r--src/modules/system/index.ts5
1 files changed, 4 insertions, 1 deletions
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 })