Skip to content

Commit

Permalink
improve modulename
Browse files Browse the repository at this point in the history
  • Loading branch information
waruqi committed Apr 26, 2024
1 parent 539785c commit cf42445
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xmake/plugins/show/lists/apis.lua
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ function script_extension_module_apis()
if path.filename(modulename) == "main.lua" then
modulename = path.directory(modulename)
end
modulename = modulename:gsub("/", "."):gsub("%.lua", "")
modulename = modulename:gsub("[\\/]", "."):gsub("%.lua", "")
local instance = import(modulename, {try = true, anonymous = true})
if instance then
if _is_callable(instance) then
Expand Down

0 comments on commit cf42445

Please sign in to comment.