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

expected block end in if statement when using static values' methods and attributes #937

Closed
Javascipt opened this issue Jan 4, 2017 · 1 comment · Fixed by #939
Closed

Comments

@Javascipt
Copy link
Contributor

Javascipt commented Jan 4, 2017

When using a static value I can't use its methods. example :

   {% if 'abcdef'.indexOf('abc') === 0 %}

it's always expecting the end block token

Other examples that throws the same exception is this

   {% if (str1 or str2).indexOf('abc') === 0 %}

or

   {% if [1, 2, 3].indexOf(1) === 0 %}
@flaviolivolsi
Copy link

+1

@Javascipt Javascipt changed the title expected block end in if statement when using static arrays expected block end in if statement when using static values' methods and attributes Jan 5, 2017
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

Successfully merging a pull request may close this issue.

2 participants