Module:Consecutive links: Difference between revisions

revert previous two changes
(fix patterns)
(revert previous two changes)
Line 7: Line 7:
local postfix = frame.args[5]
local postfix = frame.args[5]
local b = string.gsub(frame.args[1], "%s*" .. separator .. "%s*", "]]" .. replacer .. "[[")
local b = string.gsub(frame.args[1], "%s*" .. separator .. "%s*", "]]" .. replacer .. "[[")
b = "[[" .. b .. "]]"
return prefix .. "[[" .. b .. "]]" .. postfix
b = string.gsub(string.gsub(b,"%[%[%[%[","[["),"%]%]%]%]","]]")
return prefix .. b .. postfix
end
end
return p
return p