mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-26 15:40:06 +08:00
21 lines
219 B
Lua
21 lines
219 B
Lua
|
|
local str = {}
|
|
|
|
|
|
function str.trim(str)
|
|
return str:match( "^%s*(.-)%s*$" )
|
|
end
|
|
|
|
|
|
function str.fill(str, length, ...)
|
|
if string.len(str) > length then
|
|
end
|
|
|
|
end
|
|
|
|
|
|
return str
|
|
|
|
-- @todo add lua string api
|
|
|