test: move trim to global helpers

This commit is contained in:
Said Al Attrach
2019-03-30 18:14:20 +01:00
parent a9df3fa5d2
commit 2bf18e7843
4 changed files with 13 additions and 8 deletions

View File

@@ -731,6 +731,10 @@ local function read_nvim_log()
return log
end
local function trim(s)
return s:match('^%s*(.*%S)') or ''
end
local module = {
REMOVE_THIS = REMOVE_THIS,
argss_to_cmd = argss_to_cmd,
@@ -772,6 +776,7 @@ local module = {
updated = updated,
which = which,
write_file = write_file,
trim = trim,
}
return module