Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions Debugger/LuaPanda.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1699,6 +1699,11 @@ function this.changePotToSep(filePath, ext)
local idx = filePath:find(ext, (-1) * ext:len() , true)
if idx then
local tmp = filePath:sub(1, idx - 1):gsub("%.", "/");
-- 如果最后的后缀是/,代表luafileExtention不包含分隔符号,将其转换为.
if string.sub(tmp, -1) == "/" then
-- delete the last "/"
tmp = tmp:sub(1, -2) .. ".";
end
filePath = tmp .. ext;
end
return filePath;
Expand Down