Skip to content

Identical nested close tags not correctly identified #2

Open
@premasagar

Description

@premasagar

E.g. for the template:

{{_content}}
    {{_content}} foo {{/_content}}
{{_/content}}
  • an error would arise, because the outer _content block's closing token is erroneously assumed to be the first {{/_content}} token.

Line 224:

closePos = templateEnd.indexOf(closeToken);

This instead needs to walk through multiple open tokens, and only identify a matching closing token.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions