Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function lstrip(astr,chars)
- i = 0
- if astr == nil then return "" end
- if #astr == 0 then return "" end
- while chars:find(astr:sub(i,i)) do
- i = i + 1
- end
- astr = astr:sub(i)
- return astr
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement