From 8544c389ab54dd21c562b2763829670c71266caa Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Thu, 29 Dec 2022 18:26:39 +0100 Subject: [PATCH] fix(cache): always normalize modname separators --- lua/lazy/core/cache.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/lua/lazy/core/cache.lua b/lua/lazy/core/cache.lua index 6876edd..109405f 100644 --- a/lua/lazy/core/cache.lua +++ b/lua/lazy/core/cache.lua @@ -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