Skip to content

Commit d57ed88

Browse files
committed
Experimental vision for Windows
1 parent 6a4c14f commit d57ed88

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

interpreter/utils/find_image_path.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# Function to find all paths ending with .png, .jpg, or .jpeg
66
def find_image_path(text):
77
# Regex pattern to find all the specified paths with extensions .png, .jpg, or .jpeg
8-
pattern = r"([A-Za-z]:\\[^:\n]*?\.(png|jpg|jpeg))|(/[^:\n]*?\.(png|jpg|jpeg))"
8+
pattern = r"([A-Za-z]:\\[^:\n]*?\.(png|jpg|jpeg|PNG|JPG|JPEG))|(/[^:\n]*?\.(png|jpg|jpeg|PNG|JPG|JPEG))"
99

1010
# Find all matches using the finditer method
1111
matches = [match.group(1) for match in re.finditer(pattern, text)]

0 commit comments

Comments
 (0)