diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-12-16 20:08:23 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-12-16 20:08:23 +0800 |
commit | 028460ed338a0ba582e5f755a9734ed65b290c0d (patch) | |
tree | 8ac7e36723fedc5cd352bbbb26d1974ae0e4a854 /script/workspace | |
parent | 6924e8af8febf07f559d2a906c897f3e1f876e5c (diff) | |
download | lua-language-server-028460ed338a0ba582e5f755a9734ed65b290c0d.zip |
fix #847
Diffstat (limited to 'script/workspace')
-rw-r--r-- | script/workspace/require-path.lua | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/script/workspace/require-path.lua b/script/workspace/require-path.lua index 52151dba..0fec6cc9 100644 --- a/script/workspace/require-path.lua +++ b/script/workspace/require-path.lua @@ -60,10 +60,8 @@ function m.getVisiblePath(path) pos = currentPath:match('[/\\]+()', pos) if platform.OS == 'Windows' then searcher = searcher :gsub('[/\\]+', '\\') - :gsub('^[/\\]+', '') else searcher = searcher :gsub('[/\\]+', '/') - :gsub('^[/\\]+', '') end local expect = getOnePath(cutedPath, searcher) if expect then |