Skip to content

Commit

Permalink
fix regexp for #1320
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewprzh committed Jun 24, 2024
1 parent 38af83d commit 60ad35e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/projects/spades/pipeline/spades_pipeline/support.py
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,7 @@ def atoi(text):
return text

def natural_keys(text):
return [atoi(c) for c in re.split("(\d+)", text)]
return [atoi(c) for c in re.split("(\\d+)", text)]

latest_dir = None
for dir_to_test in sorted(glob.glob(pattern), key=natural_keys, reverse=True):
Expand Down

0 comments on commit 60ad35e

Please sign in to comment.