From f66b12fd1d0b83af0d7230d7b1565fbe00afbe3c Mon Sep 17 00:00:00 2001 From: Rafi Zadanly Date: Wed, 22 Feb 2023 11:03:34 +0700 Subject: prettier --- src/core/utils/toTitleCase.js | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'src/core/utils/toTitleCase.js') diff --git a/src/core/utils/toTitleCase.js b/src/core/utils/toTitleCase.js index b2751f0b..4335824d 100644 --- a/src/core/utils/toTitleCase.js +++ b/src/core/utils/toTitleCase.js @@ -1,10 +1,7 @@ const toTitleCase = (str) => { - return str.replace( - /\w\S*/g, - function(txt) { - return txt.charAt(0).toUpperCase() + txt.substr(1).toLowerCase(); - } - ); + return str.replace(/\w\S*/g, function (txt) { + return txt.charAt(0).toUpperCase() + txt.substr(1).toLowerCase() + }) } -export default toTitleCase \ No newline at end of file +export default toTitleCase -- cgit v1.2.3