Advertisement
Corona

[Computercraft] Util API

Jun 24th, 2015
309
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.10 KB | None | 0 0
  1. --Strings--
  2.  
  3. function trim(s)
  4.   -- from PiL2 20.4
  5.   return (s:gsub("^%s*(.-)%s*$", "%1"))
  6. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement