mirror of
https://github.com/mickael-kerjean/filestash.git
synced 2025-11-02 11:57:04 +08:00
feature (admin): admin console
This commit is contained in:
10
client/helpers/text.js
Normal file
10
client/helpers/text.js
Normal file
@ -0,0 +1,10 @@
|
||||
export function format(str = ""){
|
||||
if(str.length === 0) return str;
|
||||
return str.split("_")
|
||||
.map((word, index) => {
|
||||
|
||||
if(index != 0) return word;
|
||||
return word[0].toUpperCase() + word.substring(1);
|
||||
})
|
||||
.join(" ");
|
||||
}
|
||||
Reference in New Issue
Block a user