mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-23 18:05:01 +02:00
Bug Fixes
This commit is contained in:
+2
-2
@@ -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') {
|
||||
|
||||
Reference in New Issue
Block a user