mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-18 14:00:39 -07:00
1.7.4
This commit is contained in:
Vendored
+5
-2
@@ -528,7 +528,9 @@ module.exports = function (options) {
|
|||||||
|
|
||||||
var args = [];
|
var args = [];
|
||||||
while (match = valueRE.exec(argList.trim())) {
|
while (match = valueRE.exec(argList.trim())) {
|
||||||
args.push(match[0]);
|
var v = match[0];
|
||||||
|
var re = new RegExp(v + '\\s*:', 'g');
|
||||||
|
re.test(match.input) ? args.push('\'' + v + '\'') : args.push(v);
|
||||||
}
|
}
|
||||||
|
|
||||||
this.name = name;
|
this.name = name;
|
||||||
@@ -599,7 +601,8 @@ var rangeLine = new RegExp('^' + rangeCapture.source + '$');
|
|||||||
var integerLine = new RegExp('^' + integer.source + '$');
|
var integerLine = new RegExp('^' + integer.source + '$');
|
||||||
|
|
||||||
// filter related
|
// filter related
|
||||||
var valueList = new RegExp(value.source + '(\\s*,\\s*' + value.source + ')*');
|
var valueDeclaration = new RegExp('(?:' + identifier.source + '\\s*:\\s*)?' + value.source);
|
||||||
|
var valueList = new RegExp(valueDeclaration.source + '(\\s*,\\s*' + valueDeclaration.source + ')*');
|
||||||
var filter = new RegExp(identifier.source + '(?:\\s*:\\s*' + valueList.source + ')?', 'g');
|
var filter = new RegExp(identifier.source + '(?:\\s*:\\s*' + valueList.source + ')?', 'g');
|
||||||
var filterCapture = new RegExp('(' + identifier.source + ')(?:\\s*:\\s*(' + valueList.source + '))?');
|
var filterCapture = new RegExp('(' + identifier.source + ')(?:\\s*:\\s*(' + valueList.source + '))?');
|
||||||
var filterLine = new RegExp('^' + filterCapture.source + '$');
|
var filterLine = new RegExp('^' + filterCapture.source + '$');
|
||||||
|
|||||||
Vendored
+2
-2
File diff suppressed because one or more lines are too long
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "shopify-liquid",
|
"name": "shopify-liquid",
|
||||||
"version": "1.7.3",
|
"version": "1.7.4",
|
||||||
"description": "A feature-rich Liquid template engine for Node.js and browsers, with compliance with the Ruby version.",
|
"description": "A feature-rich Liquid template engine for Node.js and browsers, with compliance with the Ruby version.",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
Reference in New Issue
Block a user