diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2020-08-05 15:05:28 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2020-08-05 15:05:28 +0800 |
commit | a1ec2fe4db8f611f40eeea2fd4db51d49e6d71ad (patch) | |
tree | 8dd3387d326a18fa00ae28eba1d778b09e1a02b1 /script/workspace.lua | |
parent | 977efc2804c840456edeac2af95ccf68f815d88e (diff) | |
download | lua-language-server-a1ec2fe4db8f611f40eeea2fd4db51d49e6d71ad.zip |
fix #206 修正require路径中包含 `%` 时的报错
Diffstat (limited to 'script/workspace.lua')
-rw-r--r-- | script/workspace.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/script/workspace.lua b/script/workspace.lua index 9bcaec64..d2699851 100644 --- a/script/workspace.lua +++ b/script/workspace.lua @@ -382,6 +382,7 @@ function mt:searchPath(baseUri, str) return self.searched[baseUri][str] end str = str:gsub('%.', '/') + :gsub('%%', '%%%%') local searchers = {} for i, luapath in ipairs(config.config.runtime.path) do searchers[i] = luapath:gsub('%?', str) |