Skip to content

Commit

Permalink
fix(CI): update link checker (#1008)
Browse files Browse the repository at this point in the history
  • Loading branch information
tpoisonooo authored Sep 7, 2022
1 parent b310ba8 commit 8e9578c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/scripts/doc_link_checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,15 @@ def analyze_doc(home, path):
if '[' in line and ']' in line and '(' in line and ')' in line:
all = pattern.findall(line)
for item in all:
# skip ![]()
if item.find('[') == item.find(']') - 1:
continue

# process the case [text()]()
offset = item.find('](')
if offset == -1:
continue
item = item[offset:]
start = item.find('(')
end = item.find(')')
ref = item[start + 1:end]
Expand Down

0 comments on commit 8e9578c

Please sign in to comment.