瀏覽代碼

Get content from index 0 if Index section does not exist

pull/3011/head
Matheus Felipe 2 年之前
父節點
當前提交
f3146c9e24
沒有發現已知的金鑰在資料庫的簽署中 GPG Key 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)


Loading…
取消
儲存