fix: compatible to nodejs<=4

This commit is contained in:
harttle
2017-12-08 10:42:00 +08:00
parent 7bb2ee2213
commit a21fcf6f87
+1 -1
View File
@@ -24,7 +24,7 @@ var filters = {
'ceil': v => Math.ceil(v),
'concat': (v, arg) => Array.prototype.concat.call(v, arg),
'date': (v, arg) => {
let date = v
var date = v
if (v === 'now') {
date = new Date()
} else if (_.isString(v)) {