Skip to content

Commit

Permalink
Update tutorpicasso/commands/run_extra_commands.py
Browse files Browse the repository at this point in the history
Co-authored-by: Maria Grimaldi <[email protected]>
  • Loading branch information
MaferMazu and mariajgrimaldi authored Aug 20, 2024
1 parent 460db21 commit 970c11d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tutorpicasso/commands/run_extra_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def create_regex_from_array(arr: List[str]) -> re.Pattern[str]:
Return:
A new compiled regex pattern that can be used for comparisons
"""
escaped_arr = [re.escape(item) for item in arr]
escaped_arr = list(map(re.escape, arr))
regex_pattern = "|".join(escaped_arr)
return re.compile(regex_pattern)

Expand Down

0 comments on commit 970c11d

Please sign in to comment.