summaryrefslogtreecommitdiff
path: root/src/core/utils/toTitleCase.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/utils/toTitleCase.js')
-rw-r--r--src/core/utils/toTitleCase.js11
1 files changed, 4 insertions, 7 deletions
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