Module:Template input parse: Difference between revisions

Ganaram inukshuk (talk | contribs)
Empty table of numeric pairs returns nil instead; to be rolled out for other functions
Ganaram inukshuk (talk | contribs)
kv pairs returns nil if the string was empty
Line 110: Line 110:
end
end
end
end
return pairs_
if #pairs_ == 0 then
return nil
else
return pairs_
end
end
end


return p
return p