Skip to content

Commit

Permalink
fix: Fix regular expression for CTE name
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmckinney committed Oct 9, 2024
1 parent 3ea2e1d commit 5428618
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion manage.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ def dependency_graph(files):
for object_name in re.findall(r'\b(?:FROM|JOIN)\s+(\w+)', content, flags=re.MULTILINE):
imports[identifier].add(object_name)
imports[identifier].update(imports_from_function)
for object_name in re.findall(r'(?:\n|\bWITH\s+)(\w+)\s+AS', content, flags=re.MULTILINE):
for object_name in re.findall(r'(?:,\n+|\bWITH\s+)(\w+)\s+AS', content, flags=re.MULTILINE):
imports[identifier].discard(object_name)
imports[identifier].difference_update(exports | ignore)

Expand Down

0 comments on commit 5428618

Please sign in to comment.