修正GenerateProblemListFromString2024中关于题目前缀的一个bug
This commit is contained in:
parent
bfd67fb229
commit
cc69143496
|
|
@ -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(",")
|
||||
|
|
|
|||
Reference in New Issue