We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 04c4dd0 commit c2a6523Copy full SHA for c2a6523
1 file changed
sqlmesh/dbt/manifest.py
@@ -771,7 +771,7 @@ def _convert_jinja_test_to_macro(test_jinja: str) -> str:
771
772
773
def _strip_jinja_materialization_tags(materialization_jinja: str) -> str:
774
- MATERIALIZATION_TAG_REGEX = r"{%-?\s*materialization\s+[^%]*%}\s*\n?"
+ MATERIALIZATION_TAG_REGEX = r"\s*{%-?\s*materialization\s+[^%]*%}\s*\n?"
775
ENDMATERIALIZATION_REGEX = r"{%-?\s*endmaterialization\s*-?%}\s*\n?"
776
777
if not re.match(MATERIALIZATION_TAG_REGEX, materialization_jinja):
0 commit comments