mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-18 05:50:43 -07:00
fix dupe name bug
This commit is contained in:
+3
-1
@@ -36,7 +36,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
|
||||
|
||||
Reference in New Issue
Block a user