diff options
author | Xxiong <597272622@qq.com> | 2022-08-09 17:19:41 +0800 |
---|---|---|
committer | Xxiong <597272622@qq.com> | 2022-08-09 17:19:41 +0800 |
commit | 533dd62a862a9f4bc2491411515bca1511d319ac (patch) | |
tree | b3b1a17d896e80aac36c2da10c14ba179ae40ea2 /script/workspace | |
parent | 13bb2c666342b7dbe14e6118f761738711491539 (diff) | |
download | lua-language-server-533dd62a862a9f4bc2491411515bca1511d319ac.zip |
修复额外Library文件夹名前带有".."字符时,无法正确获取路径问题
Diffstat (limited to 'script/workspace')
-rw-r--r-- | script/workspace/workspace.lua | 2 |
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 |