refactor: move thing out to utils

This commit is contained in:
Oleksandr Smirnov 2025-03-22 23:00:14 +02:00
parent 0c0584edbd
commit 74d7afcc01
No known key found for this signature in database
3 changed files with 15 additions and 10 deletions

View file

@ -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