This commit is contained in:
Jun Yang
2018-04-07 19:49:46 +08:00
parent 098f5164e7
commit b356651c97
3 changed files with 6 additions and 4 deletions
+4 -2
View File
@@ -632,7 +632,9 @@ module.exports = function (options) {
while (match = valueRE.exec(argList.trim())) {
var v = match[0];
var re = new RegExp(v + '\\s*:', 'g');
re.test(match.input) ? args.push('\'' + v + '\'') : args.push(v);
var keyMatch = re.exec(match.input);
var currentMatchIsKey = keyMatch && keyMatch.index === match.index;
currentMatchIsKey ? args.push('\'' + v + '\'') : args.push(v);
}
this.name = name;
@@ -2391,7 +2393,7 @@ module.exports = function (liquid) {
var Liquid = require('..');
var lexical = Liquid.lexical;
var withRE = new RegExp('with\\s+(' + lexical.value.source + ')');
var staticFileRE = /\S+/;
var staticFileRE = /[^\s,]+/;
var assert = require('../src/util/assert.js');
module.exports = function (liquid) {
+1 -1
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "liquidjs",
"version": "3.1.1",
"version": "3.1.2",
"description": "Liquid template engine by pure JavaScript: compatible to shopify, easy to extend.",
"main": "index.js",
"scripts": {