Changes

no edit summary
Line 98: Line 98:  
     s = tostring(s) or ""
 
     s = tostring(s) or ""
 
     return #s < n and string.rep(c, n - #s) .. s or s
 
     return #s < n and string.rep(c, n - #s) .. s or s
 +
end
 +
 +
function Utils.trim(s)
 +
    return string.gsub(s, "^%s*(.-)%s*$", "%1")
 
end
 
end
  
cssedit, gkautomate
6,926

edits