mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-16 12:50:38 -07:00
fix: case should allow multiple values separated by or
This is supported by Shopify liquid.
This commit is contained in:
+6
-1
@@ -17,7 +17,12 @@ export default class extends Tag {
|
||||
const values: ValueToken[] = []
|
||||
while (!token.tokenizer.end()) {
|
||||
values.push(token.tokenizer.readValueOrThrow())
|
||||
token.tokenizer.readTo(',')
|
||||
token.tokenizer.skipBlank()
|
||||
if (token.tokenizer.peek() === ',') {
|
||||
token.tokenizer.readTo(',')
|
||||
} else {
|
||||
token.tokenizer.readTo('or')
|
||||
}
|
||||
}
|
||||
this.branches.push({
|
||||
values,
|
||||
|
||||
Reference in New Issue
Block a user