1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-26 15:40:06 +08:00
SpaceVim/lua/spacevim/api/data/string.lua
2021-08-14 20:51:00 +08:00

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