diff options
| author | ruki <[email protected]> | 2024-04-27 00:28:45 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2024-04-27 00:28:45 +0800 |
| commit | cf42445dd5dce09224ee1bfa28f2925ce50d7eeb (patch) | |
| tree | 139f60588625a82e034bc4607adf8da20d7521fb | |
| parent | 539785cee40ea366af0128f5e6ca0b1a8a622855 (diff) | |
improve modulename
| -rw-r--r-- | xmake/plugins/show/lists/apis.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/plugins/show/lists/apis.lua b/xmake/plugins/show/lists/apis.lua index f42f4b839..6e74bb6a8 100644 --- a/xmake/plugins/show/lists/apis.lua +++ b/xmake/plugins/show/lists/apis.lua @@ -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 |
