Module:Utilities: Difference between revisionsGive feedback
m Reverted edit by 149.28.42.29 (talk) to last revision by Sur Tag: Rollback |
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 | ||