Skip to content

Commit

Permalink
fix(cache): always normalize modname separators
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Dec 29, 2022
1 parent c7c1295 commit 8544c38
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lua/lazy/core/cache.lua
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ end
---@param modname string
---@return any
function M.loader(modname)
modname = modname:gsub("/", ".")
local entry = M.cache[modname]

local chunk, err
Expand Down

0 comments on commit 8544c38

Please sign in to comment.