We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
christopherpickering
Learn more about funding links in repositories.
Report abuse
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
djlint --version
Regular expression is getting expanded weirdly when running djlint.
For example: example.jinja
{% macro input_pattern(pattern) %} pattern="^([0-9A-Fa-f]{2})$" {% endmacro %} {% macro input() %} <input {{ input_pattern(pattern) }} /> {%- endmacro %}
❯ djlint --indent 2 --max-blank-lines 1 --quiet --reformat --extension jinja example.jinja
The above example.jinja becomes
{% macro input_pattern(pattern) %} pattern="^([0-9A-Fa-f]{2})$" {% endmacro %} {% macro input() %} <input {{ input_pattern([ ]*)({{-?\+?)[ ]*?((?:(?!}}).)*?\w)(\((?:\"[^\"]*\"|'[^']*'|[^\)])*?\)[ ]*)((?:\[[^\]]*?\]|\.[^\s]+)[ ]*)?((?:(?!}}).)*?-?\+?}}) }} /> {%- endmacro %}
This issue first appears with djlint 1.35.4. With djlint 1.35.3 this doesn't occur.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
System Info
djlint --version
)djlint, version 1.36.4Issue
Regular expression is getting expanded weirdly when running djlint.
For example:
example.jinja
How To Reproduce
The above example.jinja becomes
This issue first appears with djlint 1.35.4. With djlint 1.35.3 this doesn't occur.
The text was updated successfully, but these errors were encountered: