diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2020-12-17 14:39:23 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2020-12-17 14:39:23 +0800 |
commit | 65aa894f82033b636118e0919b5b3195e86af9a9 (patch) | |
tree | 4496f760e1ffdd591f9d0b442cb1ff40585adfcb /script/workspace | |
parent | 50e027378a627146f891ee8c5b5e838096d6f334 (diff) | |
download | lua-language-server-65aa894f82033b636118e0919b5b3195e86af9a9.zip |
some fix
Diffstat (limited to 'script/workspace')
-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 f1dc2fb9..4503f0ee 100644 --- a/script/workspace/require-path.lua +++ b/script/workspace/require-path.lua @@ -17,7 +17,7 @@ local function getOnePath(path, searcher) local start = stemSearcher:match '()%?' or 1 for pos = start, #stemPath do local word = stemPath:sub(start, pos) - local newSearcher = stemSearcher:gsub('%?', word) + local newSearcher = stemSearcher:gsub('%?', (word:gsub('%%', '%%%%'))) if newSearcher == stemPath then return word end |