mirror of
https://github.com/ThePrimeagen/harpoon.git
synced 2025-07-16 11:00:23 +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 Logger = require("harpoon.logger")
|
||||||
|
|
||||||
local eq = assert.are.same
|
local eq = assert.are.same
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
local M = {}
|
local M = {}
|
||||||
|
|
||||||
function M.trim(str)
|
function M.trim(str)
|
||||||
return str:gsub("^%s+", ""):gsub("%s+$", "")
|
return str:gsub("^%s+", ""):gsub("%s+$", "")
|
||||||
end
|
end
|
||||||
function M.remove_duplicate_whitespace(str)
|
function M.remove_duplicate_whitespace(str)
|
||||||
return str:gsub("%s+", " ")
|
return str:gsub("%s+", " ")
|
||||||
@ -11,8 +11,8 @@ function M.split(str, sep)
|
|||||||
if sep == nil then
|
if sep == nil then
|
||||||
sep = "%s"
|
sep = "%s"
|
||||||
end
|
end
|
||||||
local t={}
|
local t = {}
|
||||||
for s in string.gmatch(str, "([^"..sep.."]+)") do
|
for s in string.gmatch(str, "([^" .. sep .. "]+)") do
|
||||||
table.insert(t, s)
|
table.insert(t, s)
|
||||||
end
|
end
|
||||||
return t
|
return t
|
||||||
|
Loading…
x
Reference in New Issue
Block a user