We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 626b207 commit a4d0aa8Copy full SHA for a4d0aa8
judge_pics/search.py
@@ -34,7 +34,7 @@ def query(search_str: str, size: SIZES = ImageSizes.MEDIUM) -> Optional[List]:
34
35
xlist = []
36
for path in paths:
37
- matching_path = re.sub("[\d-]+", " ", path).strip()
+ matching_path = re.sub(r"[\d-]+", " ", path).strip()
38
m = fuzz.token_sort_ratio(matching_path, search_str.lower())
39
xlist.append((path, m))
40
if m > 95:
0 commit comments