mirror of https://github.com/folke/lazy.nvim.git
fix(util): strip `-lua` in normname
This commit is contained in:
parent
d1de92dffa
commit
54b003c650
|
@ -66,7 +66,7 @@ end
|
|||
---@param name string
|
||||
---@return string
|
||||
function M.normname(name)
|
||||
local ret = name:lower():gsub("^n?vim%-", ""):gsub("%.n?vim$", ""):gsub("%.lua", ""):gsub("[^a-z]+", "")
|
||||
local ret = name:lower():gsub("^n?vim%-", ""):gsub("%.n?vim$", ""):gsub("[%.%-]lua", ""):gsub("[^a-z]+", "")
|
||||
return ret
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue