Module:linkeach: Difference between revisions

no edit summary
No edit summary
No edit summary
 
Line 18: Line 18:
local words = {}
local words = {}
sep = sep or " "
for word in mw.ustring.gmatch(str, "(%S+)") do
for word in mw.ustring.gmatch(str, "(%S+)") do
Line 25: Line 24:
end
end
return words
return table.concat(words, " ")
end
end