diff options
Diffstat (limited to 'ui/app/helpers/common.util.js')
-rw-r--r-- | ui/app/helpers/common.util.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ui/app/helpers/common.util.js b/ui/app/helpers/common.util.js new file mode 100644 index 000000000..0c02481e6 --- /dev/null +++ b/ui/app/helpers/common.util.js @@ -0,0 +1,5 @@ +export function camelCaseToCapitalize (str = '') { + return str + .replace(/([A-Z])/g, ' $1') + .replace(/^./, str => str.toUpperCase()) +} |