1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-27 12:50:04 +08:00
SpaceVim/lua/spacevim/api/data/string.lua

21 lines
219 B
Lua
Raw Normal View History

2020-09-19 22:57:11 +08:00
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
2019-07-11 18:26:29 +08:00
-- @todo add lua string api
2020-09-19 22:57:11 +08:00