Module:Param Parse: Difference between revisions

Jump to navigation Jump to search
Content added Content deleted
(Allow overriding the variant name seperation logic)
(Remove extra space in name)
Line 447: Line 447:
if name:sub(-1-#variant_name) == ' '..variant_name then
if name:sub(-1-#variant_name) == ' '..variant_name then
-- Ends with the variant name. Remove it
-- Ends with the variant name. Remove it
name = name:sub(1, -1-#variant_name)
name = name:sub(1, -2-#variant_name)
end
end
return name
return name