diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-07-29 14:11:31 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-07-29 14:11:31 +0800 |
commit | d60714d55e8cca299cd9715f781af5caaac72552 (patch) | |
tree | 461e762cefcd06c4158e843680358beb007f5381 /script/workspace/require-path.lua | |
parent | 4190a3e8ebd0ff1408fc47927394970de952f18c (diff) | |
download | lua-language-server-d60714d55e8cca299cd9715f781af5caaac72552.zip |
fix
Diffstat (limited to 'script/workspace/require-path.lua')
-rw-r--r-- | script/workspace/require-path.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/script/workspace/require-path.lua b/script/workspace/require-path.lua index 8048f8ef..1b7b25f9 100644 --- a/script/workspace/require-path.lua +++ b/script/workspace/require-path.lua @@ -169,7 +169,7 @@ function mt:findUrisByRequireName(suri, name) local searcherMap = {} for _, searcher in ipairs(searchers) do - local fspath = searcher:gsub('%?', path:gsub('%%', '%%%%')) + local fspath = searcher:gsub('%?', (path:gsub('%%', '%%%%'))) local fullPath = workspace.getAbsolutePath(self.scp.uri, fspath) if fullPath then local fullUri = furi.encode(fullPath) |