Fix the capitalize
This commit is contained in:
parent
0022edb774
commit
aebd7de68c
|
@ -350,7 +350,7 @@ function capitalize(str) {
|
||||||
if (!str) {
|
if (!str) {
|
||||||
return str;
|
return str;
|
||||||
}
|
}
|
||||||
return str.charAt(0).toUpperCase() + (str.length > 1) ? str.slice(1).toLowerCase() : '';
|
return str.charAt(0).toUpperCase() + ((str.length > 1) ? str.slice(1).toLowerCase() : '');
|
||||||
}
|
}
|
||||||
|
|
||||||
function fromDBName(dbName, camelCase) {
|
function fromDBName(dbName, camelCase) {
|
||||||
|
|
Loading…
Reference in New Issue