liquidless
Advanced tools
Comparing version 1.3.1 to 1.3.2
@@ -13,5 +13,6 @@ "use strict"; | ||
const QUOTED_STRING_REGEX = /^(["'])(?<string>.+)\1$/; | ||
const splitPattern = /,(?![^{}]*})/g; | ||
const parseArgs = (args) => args.length > 0 | ||
? args | ||
.split(',') | ||
.split(splitPattern) | ||
.map((arg) => arg.trim()) | ||
@@ -18,0 +19,0 @@ .map((arg) => QUOTED_STRING_REGEX.test(arg) ? arg.slice(1, -1) : JSON.parse(arg)) |
@@ -20,3 +20,4 @@ "use strict"; | ||
expressions[i] = filters.reduce((variableValue, filter) => { | ||
const [filterMethod, args] = filter.split(':'); | ||
const splitPattern = /:(?![^{}]*})/g; | ||
const [filterMethod, args] = filter.split(splitPattern); | ||
const parsedArgs = (0, filters_1.parseArgs)(args ?? ''); | ||
@@ -23,0 +24,0 @@ return combinedFilters[filterMethod] |
{ | ||
"name": "liquidless", | ||
"version": "1.3.1", | ||
"version": "1.3.2", | ||
"description": "Shopify's Liquid template engine, but less powerful", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7276
7
92