diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-08-18 20:04:18 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-08-18 20:04:18 +0800 |
commit | 8455ed7b3734e8648a4a542eb26575c7085466b8 (patch) | |
tree | 1e321b89dd5cd2949359ed0f656b049b7e4c8ad1 /script | |
parent | 38d46faae20bbdbc3578452f020276766aed67e0 (diff) | |
download | lua-language-server-8455ed7b3734e8648a4a542eb26575c7085466b8.zip |
Drive letter is always uppercase
Diffstat (limited to 'script')
-rw-r--r-- | script/file-uri.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/script/file-uri.lua b/script/file-uri.lua index add3a73c..88281ca2 100644 --- a/script/file-uri.lua +++ b/script/file-uri.lua @@ -78,7 +78,7 @@ function m.decode(uri) if scheme == 'file' and #authority > 0 and #path > 1 then value = '//' .. authority .. path elseif path:match '/%a:' then - value = path:sub(2, 2) .. path:sub(3) + value = path:sub(2, 2):upper() .. path:sub(3) else value = path end |