Skip to content

Commit 533dd62

Browse files
committed
修复额外Library文件夹名前带有".."字符时,无法正确获取路径问题
1 parent 13bb2c6 commit 533dd62

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

script/workspace/workspace.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ function m.normalize(path)
391391
break
392392
end
393393
local count
394-
path, count = path:gsub('[^/\\]+[/\\]+%.%.', '', 1)
394+
path, count = path:gsub('[^/\\]+[/\\]+%.%.[/\\]', '/', 1)
395395
if count == 0 then
396396
break
397397
end

0 commit comments

Comments
 (0)