fix(cache): cache file names on Windows

This commit is contained in:
Folke Lemaitre 2023-02-13 10:35:15 +01:00
parent b68cf58962
commit 609445a051
No known key found for this signature in database
GPG Key ID: 36B7C1C85AAC487F
1 changed files with 1 additions and 1 deletions

View File

@ -63,7 +63,7 @@ end
---@param name string can be a module name, or a file name ---@param name string can be a module name, or a file name
---@private ---@private
function Cache.cache_file(name) function Cache.cache_file(name)
return M.path .. "/" .. name:gsub("[/\\]", "%%") .. ".luac" return M.path .. "/" .. name:gsub("[/\\:]", "%%") .. "c"
end end
---@param entry CacheEntry ---@param entry CacheEntry