This commit is contained in:
harttle
2016-12-08 23:26:00 +08:00
parent 89636736a4
commit 2c0ba9bfd9
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -34,7 +34,7 @@ var filters = {
},
'date': function date(v, arg) {
if (v === 'now') v = new Date();
return strftime(v, arg);
return v instanceof Date ? strftime(v, arg) : '';
},
'default': function _default(v, arg) {
return v || arg;
+2 -2
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "shopify-liquid",
"version": "1.5.2",
"version": "1.5.3",
"description": "A feature-rich Liquid template engine for Node.js and browsers, with compliance with the Ruby version.",
"main": "index.js",
"scripts": {