ソースを参照

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("/")

読み込み中…
キャンセル
保存