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

Simplify Jinja expression context regexes #197

Merged

Conversation

blag
Copy link
Contributor

@blag blag commented Apr 10, 2020

This PR cleans up some of the regexes that are used to recognize context references and extract variable names. I also added a few more strings to the tests.

I can do some further cleanup, but it would make the regexes a lot more complicated to understand (but probably slightly faster to execute).

@m4dcoder m4dcoder merged commit 8f3584f into fix-variables-evaluation Apr 10, 2020
@m4dcoder m4dcoder deleted the fix-variables-evaluation-simplify-regexes branch April 10, 2020 18:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants