summaryrefslogtreecommitdiff
path: root/script/file-uri.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2023-01-18 06:10:55 +0800
committer最萌小汐 <sumneko@hotmail.com>2023-01-18 06:10:55 +0800
commitbddeb50920da81a6cecd91100aed018769bcc5b7 (patch)
tree9e0c1d979431c5e17da606ec35a9d22fb17dd8f9 /script/file-uri.lua
parentefffa22c25f713f8e37bb22e891319076f5b759d (diff)
downloadlua-language-server-bddeb50920da81a6cecd91100aed018769bcc5b7.zip
normalize uri from RPC
fix #1810
Diffstat (limited to 'script/file-uri.lua')
-rw-r--r--script/file-uri.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/script/file-uri.lua b/script/file-uri.lua
index 3e916acf..8e9dd938 100644
--- a/script/file-uri.lua
+++ b/script/file-uri.lua
@@ -106,7 +106,7 @@ function m.isValid(uri)
end
function m.normalize(uri)
- if uri == '' then
+ if not m.isValid(uri) then
return uri
end
return m.encode(m.decode(uri))