1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-23 13:10:04 +08:00

fix(string): fix string.lua

This commit is contained in:
wsdjeg 2022-06-19 22:38:25 +08:00
parent fa184b3c4b
commit db5d569d0d

View File

@ -1,10 +1,3 @@
local str = {}
function str.trim(str)
=======
--=============================================================================
-- string.lua --- spacevim data#string api
-- Copyright (c) 2016-2019 Wang Shidong & Contributors
@ -22,17 +15,6 @@ function M.trim(str)
return str:match( "^%s*(.-)%s*$" )
end
function str.fill(str, length, ...)
if string.len(str) > length then
end
end
return str
=======
function M.fill(str, length, ...)
local v = ''
if string.len(str) <= length then