Skip to content

Commit 7d1280c

Browse files
add word boundary to split
1 parent 8e4f8c6 commit 7d1280c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/runners/typeql_runner.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def run_failing_queries(self, queries: List[str], type: TransactionType) -> str:
9494
return FailureMode.NoFailure
9595

9696
def run_transaction(self, queries: List[str], type: TransactionType, rollback=False) -> Union[int, None]:
97-
queries = [q for qs in queries for q in re.split(r'end\s*;', qs) if q.strip()]
97+
queries = [q for qs in queries for q in re.split(r'\bend\s*;', qs) if q.strip()]
9898
with self.driver.transaction(self.db, type) as tx:
9999
try:
100100
for q in queries:

0 commit comments

Comments
 (0)