Module:Utilities: Difference between revisions

m Reverted edit by 149.28.42.29 (talk) to last revision by Sur
Tag: Rollback
Sur (talk | contribs)
m remove_trailing_colon() initial
Line 182: Line 182:
end
end
return color
return color
end
function p.remove_trailing_colon(frame)
    local str = frame.args[1] or ""
    -- Remove trailing colon
    return (str:gsub(":$", ""))
end
end


return p
return p