Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Identical nested close tags not correctly identified #2

Open
premasagar opened this issue Feb 21, 2011 · 0 comments
Open

Identical nested close tags not correctly identified #2

premasagar opened this issue Feb 21, 2011 · 0 comments

Comments

@premasagar
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant