Commit 79913288 by murtaugh

accept File or Image in filelink fixer

parent 71b4b3ff
......@@ -25,7 +25,7 @@ def fixurlfilelinks (src, wiki, timestamp=None):
else:
return "[[{0}{1}]]".format(page.name, m.group(2) or "")
pass
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(page.name), 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