From a4d0aa8a821c9641e9acfb51f2843b522f706ac7 Mon Sep 17 00:00:00 2001 From: legaltextai <144342123+legaltextai@users.noreply.github.com> Date: Wed, 28 Aug 2024 16:25:55 -0400 Subject: [PATCH] fixing python 3.12 syntax warning re invalid escape sequence --- judge_pics/search.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/judge_pics/search.py b/judge_pics/search.py index 1590d3c..f719870 100644 --- a/judge_pics/search.py +++ b/judge_pics/search.py @@ -34,7 +34,7 @@ def query(search_str: str, size: SIZES = ImageSizes.MEDIUM) -> Optional[List]: xlist = [] for path in paths: - matching_path = re.sub("[\d-]+", " ", path).strip() + matching_path = re.sub(r"[\d-]+", " ", path).strip() m = fuzz.token_sort_ratio(matching_path, search_str.lower()) xlist.append((path, m)) if m > 95: