From 970c11d1b9499d7d67ce9b002991108bc2cddc61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mar=C3=ADa=20Fernanda=20Magallanes?= <35668326+MaferMazu@users.noreply.github.com> Date: Tue, 20 Aug 2024 15:07:52 -0500 Subject: [PATCH] Update tutorpicasso/commands/run_extra_commands.py Co-authored-by: Maria Grimaldi --- tutorpicasso/commands/run_extra_commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tutorpicasso/commands/run_extra_commands.py b/tutorpicasso/commands/run_extra_commands.py index f02cca6..fe64ee2 100644 --- a/tutorpicasso/commands/run_extra_commands.py +++ b/tutorpicasso/commands/run_extra_commands.py @@ -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)