diff --git a/工具v2/database_tools.py b/工具v2/database_tools.py index f5ecab2c..1081cf02 100644 --- a/工具v2/database_tools.py +++ b/工具v2/database_tools.py @@ -288,7 +288,7 @@ def GenerateProblemListFromString2024(data): #从来自.tex文件的字符串生 same_id_list = [] related_id_list = [] unrelated_id_list = [] - content = re.sub(r"^\[rep(\d+)\]","",content_raw).strip() + content = re.sub(r"^\[[A-Za-z\d,\s]*?\]","",content_raw).strip() metaraw = re.findall(r"\[.*\]",content_raw)[0] metaraw = re.sub(r"[\[\]]","",metaraw) metalist = metaraw.split(",")