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

Only do special reserved name handling when tag is all lowercase letters #394

Merged
merged 1 commit into from
Mar 19, 2017

Conversation

Conduitry
Copy link
Member

The changes in #385 caused undesirable behavior with tags like {{123}}. Since 123 matches /^\w+$/, this is now turned into root.123.

This PR restricts the special handling only to tags made up of all lowercase letters, which will cover all the cases where the tag is a reserved word. Other cases will continue to be parsed by Acorn.

@Rich-Harris Rich-Harris merged commit 399c7e0 into master Mar 19, 2017
@Rich-Harris
Copy link
Member

ah yep, makes sense 👍

@Rich-Harris Rich-Harris deleted the fix-overly-aggressive-reserved-tag-parsing branch March 19, 2017 12:46
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 this pull request may close these issues.

2 participants