aboutsummaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/internet/index.ts6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/modules/internet/index.ts b/src/modules/internet/index.ts
index 4f313275..2bac0668 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();
}