瀏覽代碼

update new receive hook

Thomas Buck 5 年之前
父節點
當前提交
fad7ba6596
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      macros.py

+ 1
- 1
macros.py 查看文件

@@ -243,7 +243,7 @@ def hook_postconvert_size():
243 243
     def matched_link(matchobj):
244 244
         try:
245 245
             path = matchobj.group(1)
246
-            if path.startswith("http") or path.startswith("//"):
246
+            if path.startswith("http") or path.startswith("//") or path.startswith("ftp"):
247 247
                 return '<a href=\"%s\">%s</a>' % (matchobj.group(1), matchobj.group(3))
248 248
             elif path.startswith("/"):
249 249
                 path = path.strip("/")

Loading…
取消
儲存