refactor: move thing out to utils
This commit is contained in:
parent
0c0584edbd
commit
74d7afcc01
3 changed files with 15 additions and 10 deletions
|
|
@ -30,4 +30,11 @@ function utils.remove_empty_lines(t)
|
|||
return res
|
||||
end
|
||||
|
||||
---@param s string
|
||||
---@return string
|
||||
function utils.trimend(s)
|
||||
local r, _ = string.gsub(s, "%s+$", "")
|
||||
return r
|
||||
end
|
||||
|
||||
return utils
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue