File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -156,8 +156,11 @@ def safe_markdown(value: Any) -> str:
156
156
_PRECOMPILED_BLOCK_PATTERN = re .compile (r"{% block \w+? %}" )
157
157
_PRECOMPILED_INCLUDE_PATTERN = re .compile (r"{% include '.+?' %}|{% include \".+?\" %}" )
158
158
_PRECOMPILED_HASH_COMMENT_PATTERN = re .compile (r"{# .+? #}" )
159
+ # Workaround for bug in re module https://github.com/adafruit/circuitpython/issues/8525
159
160
_PRECOMPILED_BLOCK_COMMENT_PATTERN = re .compile (
160
- r"{% comment ('.*?' |\".*?\" )?%}[\s\S]*?{% endcomment %}"
161
+ # TODO: Use r"{% comment ('.*?' |\".*?\" )?%}[\s\S]*?{% endcomment %}" without flags when fixed
162
+ r"{% comment ('.*?' |\".*?\" )?%}.*?{% endcomment %}" ,
163
+ 16 , # re.DOTALL flag
161
164
)
162
165
_PRECOMPILED_TOKEN_PATTERN = re .compile (r"{{ .+? }}|{% .+? %}" )
163
166
You can’t perform that action at this time.
0 commit comments