浏览代码

Get content from index 0 if Index section does not exist

pull/3011/head
Matheus Felipe 2 年前
父节点
当前提交
f3146c9e24
找不到此签名对应的密钥 GPG 密钥 ID: AA785C523274872F
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. +2
    -0
      scripts/validate/links.py

+ 2
- 0
scripts/validate/links.py 查看文件

@@ -29,6 +29,8 @@ def find_links_in_file(filename: str) -> List[str]:
with open(filename, mode='r', encoding='utf-8') as file:
readme = file.read()
index_section = readme.find('## Index')
if index_section == -1:
index_section = 0
content = readme[index_section:]

links = find_links_in_text(content)


正在加载...
取消
保存