Anonymous user
Module:Delink: Difference between revisions
From the Croc Wiki, the Croc encyclopedia
Jump to navigationJump to search
try capturing the whole of the pattern, in case it isn't doing this already
(return false for bad links rather than returning the entire string) |
(try capturing the whole of the pattern, in case it isn't doing this already) |
||
Line 115:
local function _delink(args)
local text = args[1] or ""
text = mw.ustring.gsub(text, "(%[%[.-%]%])", delinkWikilink)
text = mw.ustring.gsub(text, "(%[.-%])", delinkURL)
return text
end
|