Bug Fixes

This commit is contained in:
Daniel Odendahl Jr
2018-09-13 02:00:09 +00:00
parent 8b4f00f736
commit f0a6869c85
9 changed files with 46 additions and 22 deletions
+2 -2
View File
@@ -48,8 +48,8 @@ module.exports = class Util {
return arr;
}
static firstUpperCase(text) {
return `${text.charAt(0).toUpperCase()}${text.slice(1)}`;
static firstUpperCase(text, split = ' ') {
return text.split(split).map(word => `${word.charAt(0).toUpperCase()}${word.slice(1)}`).join(' ');
}
static base64(text, mode = 'encode') {