瀏覽代碼

Make sure the link contains ://

pull/3011/head
Matheus Felipe 2 年之前
父節點
當前提交
8650f7f979
沒有發現已知的金鑰在資料庫的簽署中 GPG Key ID: AA785C523274872F
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      scripts/validate/links.py

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

@@ -73,7 +73,7 @@ def fake_user_agent() -> str:

def get_host_from_link(link: str) -> str:

host = link.split('://', 1)[1]
host = link.split('://', 1)[1] if '://' in link else link

# Remove routes, arguments and anchors
if '/' in host:


Loading…
取消
儲存