summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-08-09 18:29:07 +0800
committerGitHub <noreply@github.com>2022-08-09 18:29:07 +0800
commit82bcfef9037c26681993c94b2f92b68d335de3c6 (patch)
treeb3b1a17d896e80aac36c2da10c14ba179ae40ea2 /script
parent13bb2c666342b7dbe14e6118f761738711491539 (diff)
parent533dd62a862a9f4bc2491411515bca1511d319ac (diff)
downloadlua-language-server-82bcfef9037c26681993c94b2f92b68d335de3c6.zip
Merge pull request #1454 from qweyouke/master
修复额外Library文件夹名前带有".."字符时,无法正确获取路径问题
Diffstat (limited to 'script')
-rw-r--r--script/workspace/workspace.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/script/workspace/workspace.lua b/script/workspace/workspace.lua
index 8ee7ad29..9d2ad637 100644
--- a/script/workspace/workspace.lua
+++ b/script/workspace/workspace.lua
@@ -391,7 +391,7 @@ function m.normalize(path)
break
end
local count
- path, count = path:gsub('[^/\\]+[/\\]+%.%.', '', 1)
+ path, count = path:gsub('[^/\\]+[/\\]+%.%.[/\\]', '/', 1)
if count == 0 then
break
end