diff --git a/src/modules/internet/index.ts b/src/modules/internet/index.ts index 4f3132752be..2bac0668928 100644 --- a/src/modules/internet/index.ts +++ b/src/modules/internet/index.ts @@ -358,10 +358,8 @@ export class InternetModule { * @since 2.0.1 */ domainWord(): string { - return `${this.faker.word.adjective()}-${this.faker.word.noun()}` - .replace(/([\\~#&*{}/:<>?|\"'])/gi, '') - .replace(/\s/g, '-') - .replace(/-{2,}/g, '-') + return this.faker.helpers + .slugify(`${this.faker.word.adjective()}-${this.faker.word.noun()}`) .toLowerCase(); }