aboutsummaryrefslogtreecommitdiffstats
path: root/src/js/utils/strings.js
diff options
context:
space:
mode:
authorSam Potts <sam@potts.es>2020-08-30 16:10:15 +1000
committerSam Potts <sam@potts.es>2020-08-30 16:10:25 +1000
commit18b3f23c694b9b3154788fa0f612621be8618a2b (patch)
tree3d0cf5a9ccd7f3082ac6b1b58480e135a6f18237 /src/js/utils/strings.js
parent11e48b018157ac75f1db1cc433b7067a3d6ab522 (diff)
downloadplyr-18b3f23c694b9b3154788fa0f612621be8618a2b.tar.lz
plyr-18b3f23c694b9b3154788fa0f612621be8618a2b.tar.xz
plyr-18b3f23c694b9b3154788fa0f612621be8618a2b.zip
chore: update packages and linting
Diffstat (limited to 'src/js/utils/strings.js')
-rw-r--r--src/js/utils/strings.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/js/utils/strings.js b/src/js/utils/strings.js
index b7de04c1..d4cc1efa 100644
--- a/src/js/utils/strings.js
+++ b/src/js/utils/strings.js
@@ -33,7 +33,7 @@ export const replaceAll = (input = '', find = '', replace = '') =>
// Convert to title case
export const toTitleCase = (input = '') =>
- input.toString().replace(/\w\S*/g, text => text.charAt(0).toUpperCase() + text.substr(1).toLowerCase());
+ input.toString().replace(/\w\S*/g, (text) => text.charAt(0).toUpperCase() + text.substr(1).toLowerCase());
// Convert string to pascalCase
export function toPascalCase(input = '') {