Skip to content

Commit

Permalink
clean double and single quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
smythi93 committed Jul 27, 2024
1 parent 317f1d9 commit 7b20d5b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/sflkit/runners/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,10 @@ def parse_tests(output: str) -> List[str]:
or match.group("name_double")
or match.group("name")
)
if match.group("name_single"):
name = name.replace("\\'", "'")
elif match.group("name_double"):
name = name.replace('\\"', '"')
obj = structure(name)
obj.depth = level
if current is None:
Expand Down

0 comments on commit 7b20d5b

Please sign in to comment.