Skip to content

Commit 92525b8

Browse files
authored
Fix re bug in image_patch
1 parent ca717aa commit 92525b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hydra_vl4ai/execution/image_patch.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -694,7 +694,7 @@ def coerce_to_numeric(string, no_string=False):
694694
pass
695695

696696
# Remove any non-numeric characters except the decimal point and the negative sign
697-
string_re = re.sub("[^0-9\.\-]", "", string)
697+
string_re = re.sub(r"[^0-9\.\-]", "", string)
698698

699699
if string_re.startswith('-'):
700700
string_re = '&' + string_re[1:]

0 commit comments

Comments
 (0)