mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-19 14:30:38 -07:00
fix: empty tagToken.args since 10.20.0, fixes #796
This commit is contained in:
@@ -5,6 +5,7 @@ import type { NormalizedFullOptions } from '../liquid-options'
|
||||
export class TagToken extends DelimitedToken {
|
||||
public name: string
|
||||
public tokenizer: Tokenizer
|
||||
public readonly args: string;
|
||||
public constructor (
|
||||
input: string,
|
||||
begin: number,
|
||||
@@ -20,9 +21,6 @@ export class TagToken extends DelimitedToken {
|
||||
this.name = this.tokenizer.readTagName()
|
||||
this.tokenizer.assert(this.name, `illegal tag syntax, tag name expected`)
|
||||
this.tokenizer.skipBlank()
|
||||
}
|
||||
|
||||
get args (): string {
|
||||
return this.tokenizer.input.slice(this.tokenizer.p, this.contentRange[1])
|
||||
this.args = this.tokenizer.input.slice(this.tokenizer.p, this.contentRange[1])
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user