From edcea9e686370a32522976639008a2643741a675 Mon Sep 17 00:00:00 2001 From: Piotr Kuczynski Date: Mon, 18 Apr 2022 23:45:31 +0200 Subject: [PATCH] chore: fixes --- src/internet.ts | 2 +- src/lorem.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/internet.ts b/src/internet.ts index d2e730046d2..1464c5277d6 100644 --- a/src/internet.ts +++ b/src/internet.ts @@ -185,7 +185,7 @@ export class Internet { * faker.internet.domainName() // 'slow-timer.info' */ domainName(): string { - return this.domainWord() + '.' + this.domainSuffix(); + return `${this.domainWord()}.${this.domainSuffix()}`; } /** diff --git a/src/lorem.ts b/src/lorem.ts index 103dd6a72df..14cc2f6b1ce 100644 --- a/src/lorem.ts +++ b/src/lorem.ts @@ -67,7 +67,7 @@ export class Lorem { } const sentence = this.words(wordCount); - return sentence.charAt(0).toUpperCase() + sentence.slice(1) + '.'; + return `${sentence.charAt(0).toUpperCase() + sentence.slice(1)}.`; } /**