mirror of
https://github.com/ThePrimeagen/harpoon.git
synced 2025-07-14 01:50:27 +00:00
Fixing linting and formatting checks.
This commit is contained in:
parent
9ff11a310a
commit
4bd2c4c792
@ -1,4 +1,4 @@
|
||||
local utils = require("harpoon.test.utils")
|
||||
--local utils = require("harpoon.test.utils")
|
||||
local Logger = require("harpoon.logger")
|
||||
|
||||
local eq = assert.are.same
|
||||
|
@ -1,7 +1,7 @@
|
||||
local M = {}
|
||||
|
||||
function M.trim(str)
|
||||
return str:gsub("^%s+", ""):gsub("%s+$", "")
|
||||
return str:gsub("^%s+", ""):gsub("%s+$", "")
|
||||
end
|
||||
function M.remove_duplicate_whitespace(str)
|
||||
return str:gsub("%s+", " ")
|
||||
@ -11,8 +11,8 @@ function M.split(str, sep)
|
||||
if sep == nil then
|
||||
sep = "%s"
|
||||
end
|
||||
local t={}
|
||||
for s in string.gmatch(str, "([^"..sep.."]+)") do
|
||||
local t = {}
|
||||
for s in string.gmatch(str, "([^" .. sep .. "]+)") do
|
||||
table.insert(t, s)
|
||||
end
|
||||
return t
|
||||
|
Loading…
x
Reference in New Issue
Block a user