Skip to content

Commit

Permalink
fix(util): strip -lua in normname
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Jul 11, 2024
1 parent d1de92d commit 54b003c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/lazy/core/util.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 54b003c

Please sign in to comment.