Skip to content

Commit 048a09f

Browse files
authored
[Fix] fix ellipsis extraction in bio_data (#2429)
1 parent fcbb26e commit 048a09f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

opencompass/datasets/biodata.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ def extract_dict_text(text):
157157
matches = pattern.findall(text)
158158
if not matches:
159159
return None
160-
if [match for match in matches][-1] == '{...}':
160+
if '...' in [match for match in matches][-1]:
161161
return None
162162
return [match for match in matches][-1]
163163

0 commit comments

Comments
 (0)