This commit is contained in:
harttle
2017-03-16 10:40:27 +08:00
parent 6f1d6f3d05
commit 445001b183
3 changed files with 6 additions and 3 deletions
+2
View File
@@ -671,6 +671,8 @@ var operators = {
return l <= r;
},
'contains': function contains(l, r) {
if (!l) return false;
if (typeof l.indexOf !== 'function') return false;
return l.indexOf(r) > -1;
},
'and': function and(l, r) {
+3 -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.7.2",
"version": "1.7.3",
"description": "A feature-rich Liquid template engine for Node.js and browsers, with compliance with the Ruby version.",
"main": "index.js",
"scripts": {