Skip to content

Commit 82bcfef

Browse files
authored
Merge pull request #1454 from qweyouke/master
修复额外Library文件夹名前带有".."字符时,无法正确获取路径问题
2 parents 13bb2c6 + 533dd62 commit 82bcfef

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)