mirror of
https://github.com/harttle/liquidjs.git
synced 2026-10-03 09:05:14 -07:00
fix: compatible to nodejs<=4
This commit is contained in:
+1
-1
@@ -24,7 +24,7 @@ var filters = {
|
|||||||
'ceil': v => Math.ceil(v),
|
'ceil': v => Math.ceil(v),
|
||||||
'concat': (v, arg) => Array.prototype.concat.call(v, arg),
|
'concat': (v, arg) => Array.prototype.concat.call(v, arg),
|
||||||
'date': (v, arg) => {
|
'date': (v, arg) => {
|
||||||
let date = v
|
var date = v
|
||||||
if (v === 'now') {
|
if (v === 'now') {
|
||||||
date = new Date()
|
date = new Date()
|
||||||
} else if (_.isString(v)) {
|
} else if (_.isString(v)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user