Skip to content

Commit

Permalink
fix: properly format regex (TobikoData#2586)
Browse files Browse the repository at this point in the history
  • Loading branch information
tobymao authored May 9, 2024
1 parent 91589b9 commit effe44a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sqlmesh/dbt/manifest.py
Original file line number Diff line number Diff line change
Expand Up @@ -471,8 +471,8 @@ def _node_base_config(node: ManifestNode) -> t.Dict[str, t.Any]:


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

0 comments on commit effe44a

Please sign in to comment.