summaryrefslogtreecommitdiff
path: root/script/workspace
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-03-17 20:07:57 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-03-17 20:07:57 +0800
commitc6ba0914a9fb5d9cdb80ed1bf53102b52ca63267 (patch)
treebdf76d52179a00e3a5b89c7b8cce9924659fc1db /script/workspace
parenta968d675a6f2abecabe2530877cefd08730251cb (diff)
downloadlua-language-server-c6ba0914a9fb5d9cdb80ed1bf53102b52ca63267.zip
fix tests
Diffstat (limited to 'script/workspace')
-rw-r--r--script/workspace/workspace.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/script/workspace/workspace.lua b/script/workspace/workspace.lua
index e0d8dae0..6047d398 100644
--- a/script/workspace/workspace.lua
+++ b/script/workspace/workspace.lua
@@ -420,13 +420,13 @@ function m.normalize(path)
if platform.OS == 'Windows' then
path = path:gsub('[/\\]+', '\\')
:gsub('[/\\]+$', '')
- :gsub('^%a+%:', function (str)
- return str:upper()
- end)
else
path = path:gsub('[/\\]+', '/')
:gsub('[/\\]+$', '')
end
+ path = path:gsub('^%a+%:', function (str)
+ return str:upper()
+ end)
return path
end