Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
regexp 💘 at work solution in Clear category for Correct Sentence by vincent.tscherter
function correctSentence(text: string): string {
return text
.replace(/^./, x => x.toUpperCase())
.replace(/\.$/, '')
+ '.';
}
April 23, 2020
Comments: