Skip to content

Commit 8544c38

Browse files
committed
fix(cache): always normalize modname separators
1 parent c7c1295 commit 8544c38

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lua/lazy/core/cache.lua

+1
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ end
116116
---@param modname string
117117
---@return any
118118
function M.loader(modname)
119+
modname = modname:gsub("/", ".")
119120
local entry = M.cache[modname]
120121

121122
local chunk, err

0 commit comments

Comments
 (0)