diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2023-03-08 21:41:19 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2023-03-08 21:41:19 +0800 |
commit | 2704d390c550515d1b510a7277841288ee73f1bb (patch) | |
tree | 64efa616053a1ab08943bd31136a74b3351c5c9d /script | |
parent | c6820ed9972fe26594c1661d3887fb1d9a6dda1e (diff) | |
download | lua-language-server-2704d390c550515d1b510a7277841288ee73f1bb.zip |
keep invalid uri
fix #1924
Diffstat (limited to 'script')
-rw-r--r-- | script/files.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/script/files.lua b/script/files.lua index 16b85068..62f01136 100644 --- a/script/files.lua +++ b/script/files.lua @@ -81,6 +81,9 @@ function m.getRealUri(uri) if platform.OS ~= 'Windows' then return furi.normalize(uri) end + if not furi.isValid(uri) then + return uri + end local filename = furi.decode(uri) -- normalize uri uri = furi.encode(filename) |