Skip to content

Commit

Permalink
Add comment explaining intention behin certain regex
Browse files Browse the repository at this point in the history
  • Loading branch information
Maspital committed Jun 29, 2022
1 parent 4cdf575 commit a46cce1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/systests/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ def try_until_counter_reached(
first_time = True
ret = None
success = False
# Removes all ANSI escape sequences to prevent unintended string mismatches when checking for success
ansi_escape = re.compile(r'\x1B(?:[@-Z\\-_]|\[[0-?]*[ -/]*[@-~])')
while (first_time and at_least_once) or (time.perf_counter() < counter):
if not first_time:
Expand Down

0 comments on commit a46cce1

Please sign in to comment.