Skip to content

Commit deb1ba9

Browse files
handle leading whitespace
1 parent 074ec1e commit deb1ba9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sqlmesh/dbt/manifest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -771,7 +771,7 @@ def _convert_jinja_test_to_macro(test_jinja: str) -> str:
771771

772772

773773
def _strip_jinja_materialization_tags(materialization_jinja: str) -> str:
774-
MATERIALIZATION_TAG_REGEX = r"{%-?\s*materialization\s+[^%]*%}\s*\n?"
774+
MATERIALIZATION_TAG_REGEX = r"\s*{%-?\s*materialization\s+[^%]*%}\s*\n?"
775775
ENDMATERIALIZATION_REGEX = r"{%-?\s*endmaterialization\s*-?%}\s*\n?"
776776

777777
if not re.match(MATERIALIZATION_TAG_REGEX, materialization_jinja):

0 commit comments

Comments
 (0)