Skip to content

Commit effe44a

Browse files
authored
fix: properly format regex (#2586)
1 parent 91589b9 commit effe44a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sqlmesh/dbt/manifest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -471,8 +471,8 @@ def _node_base_config(node: ManifestNode) -> t.Dict[str, t.Any]:
471471

472472

473473
def _convert_jinja_test_to_macro(test_jinja: str) -> str:
474-
TEST_TAG_REGEX = "\s*{%\s*test\s+"
475-
ENDTEST_REGEX = "{%\s*endtest\s*%}"
474+
TEST_TAG_REGEX = r"\s*{%\s*test\s+"
475+
ENDTEST_REGEX = r"{%\s*endtest\s*%}"
476476
match = re.match(TEST_TAG_REGEX, test_jinja)
477477
if not match:
478478
# already a macro

0 commit comments

Comments
 (0)