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

Expressions that start with numbers fail parsing #1078

Open
jad007 opened this issue Sep 22, 2023 · 0 comments
Open

Expressions that start with numbers fail parsing #1078

jad007 opened this issue Sep 22, 2023 · 0 comments

Comments

@jad007
Copy link

jad007 commented Sep 22, 2023

If I have a handlebar document like

<p>{{24HrServicePh}}</p>

Calling new Handlebars().compileInline on that string will throw an exception:

com.github.jknack.handlebars.HandlebarsException: inline@7763b6c8:1:3: found: '{{', expected: '<EOF>'
<p>{{24HrServicePh}}</p>
   ^

Handlebars.js looks like it handles expressions like this without any issue, example.

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