We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e3ac3d3 commit fa42cc1Copy full SHA for fa42cc1
1 file changed
Debugger/LuaPanda.lua
@@ -1699,6 +1699,11 @@ function this.changePotToSep(filePath, ext)
1699
local idx = filePath:find(ext, (-1) * ext:len() , true)
1700
if idx then
1701
local tmp = filePath:sub(1, idx - 1):gsub("%.", "/");
1702
+ -- 如果最后的后缀是/,代表luafileExtention不包含分隔符号,将其转换为.
1703
+ if string.sub(tmp, -1) == "/" then
1704
+ -- delete the last "/"
1705
+ tmp = tmp:sub(1, -2) .. ".";
1706
+ end
1707
filePath = tmp .. ext;
1708
end
1709
return filePath;
0 commit comments