We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ed69e35 commit d49563aCopy full SHA for d49563a
main.py
@@ -11,9 +11,12 @@
11
content = content.replace("[中文文档](/solution/CONTEST_README.md)", "")
12
res = re.findall(r"\[(.*?)\]\((.*?)\)", content)
13
for _, link in res:
14
- num = link.split("/")[-2].split(".")[0]
15
- num = int(num)
16
- content = content.replace(link, f"./lc/{num}.md")
+ try:
+ num = link.split("/")[-2].split(".")[0]
+ num = int(num)
17
+ content = content.replace(link, f"./lc/{num}.md")
18
+ except:
19
+ pass
20
content = f"---\ncomments: true\n---\n\n" + content
21
22
with open(contest_file, "w", encoding="utf-8") as f:
0 commit comments