Advertisement
alestane

Untitled

Jun 13th, 2011
369
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.21 KB | None | 0 0
  1. function lstrip(astr,chars)
  2.   i = 0
  3.   if astr == nil then return "" end
  4.   if #astr == 0 then return "" end
  5.   while chars:find(astr:sub(i,i)) do
  6.     i = i + 1
  7.   end
  8.   astr = astr:sub(i)
  9.   return astr
  10. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement