mirror of
https://github.com/neovim/neovim.git
synced 2025-11-21 09:36:29 +00:00
perf(runtime): vim.trim for long only whitespace strings
This commit is contained in:
@@ -719,10 +719,12 @@ describe('lua stdlib', function()
|
||||
{ ' b ', 'b' },
|
||||
{ '\tc', 'c' },
|
||||
{ 'r\n', 'r' },
|
||||
{ '', '' },
|
||||
{ ' \t \n', '' },
|
||||
}
|
||||
|
||||
for _, q in ipairs(trims) do
|
||||
assert(q[2], trim(q[1]))
|
||||
eq(q[2], trim(q[1]))
|
||||
end
|
||||
|
||||
-- Validates args.
|
||||
|
||||
Reference in New Issue
Block a user