Fished crash on null value
parent
c4ffdff19e
commit
a880c0078f
3
app.js
3
app.js
|
@ -287,9 +287,12 @@ handlebars = handlebars.create({
|
||||||
return'';
|
return'';
|
||||||
},
|
},
|
||||||
upperFirst: (value) => {
|
upperFirst: (value) => {
|
||||||
|
if(value){
|
||||||
return value.replace(/^\w/, (chr) => {
|
return value.replace(/^\w/, (chr) => {
|
||||||
return chr.toUpperCase();
|
return chr.toUpperCase();
|
||||||
});
|
});
|
||||||
|
}
|
||||||
|
return value;
|
||||||
},
|
},
|
||||||
math: (lvalue, operator, rvalue, options) => {
|
math: (lvalue, operator, rvalue, options) => {
|
||||||
lvalue = parseFloat(lvalue);
|
lvalue = parseFloat(lvalue);
|
||||||
|
|
Loading…
Reference in New Issue