Module:Template input parse: Difference between revisions
Empty table of numeric pairs returns nil instead; to be rolled out for other functions |
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 |