fix(cache): check full paths of cached modpaths. Fixes #324

This commit is contained in:
Folke Lemaitre 2023-01-05 13:42:17 +01:00
parent af351f69ba
commit b2dec14824
No known key found for this signature in database
GPG Key ID: 41F8B1FBACAE2040
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ function M.check_path(modname, modpath)
-- check rtp excluding plugins. This is a very small list, so should be fast
for _, path in ipairs(M.get_rtp()) do
if modpath:find(path, 1, true) == 1 then
if modpath:find(path .. "/", 1, true) == 1 then
return true
end
end