Skip to content

Commit

Permalink
require loader bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
cloudwu committed Aug 6, 2024
1 parent 88237cc commit e4436e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/ant.framework.demo/loader.lua
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ local function demo_require(name)
return m
end

name = name:gsub("%.", "/")
local path_name = name:gsub("%.", "/")

for pat in demo_search_path:gmatch "[^:]+" do
local filename = pat:gsub("?", name)
local filename = pat:gsub("?", path_name)
local r = runfile(filename)
if r then
package.loaded[name] = r
Expand Down

0 comments on commit e4436e4

Please sign in to comment.