Commit 79913288 by murtaugh

accept File or Image in filelink fixer

parent 71b4b3ff
......@@ -25,7 +25,7 @@ def fixurlfilelinks (src, wiki, timestamp=None):
return "[[{0}{1}]]".format(, or "")
return re.sub(r"\[\[File\:(https?\://.+?)(\|.+)?\]\]", linksub, src)
return re.sub(r"\[\[(?:File|Image)\:(https?\://.+?)(\|.+)?\]\]", linksub, src)
def fixlinks (page, wiki):
print ("fixlinks {0}".format(, file=sys.stderr)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment