summaryrefslogtreecommitdiff
path: root/make/bootstrap.lua
diff options
context:
space:
mode:
authorUnoWu <st9007a@gmail.com>2022-02-03 21:35:22 +0800
committerUnoWu <st9007a@gmail.com>2022-02-03 21:35:22 +0800
commit3537196f14533d8b0cf4a45042edfd675ddad7df (patch)
tree6716fdf438b88152ba544eaad96fe18f9005215a /make/bootstrap.lua
parent7842cd0e12e9d6a1971ff557a035f08386296198 (diff)
downloadlua-language-server-3537196f14533d8b0cf4a45042edfd675ddad7df.zip
Handle repeated sep
Diffstat (limited to 'make/bootstrap.lua')
-rw-r--r--make/bootstrap.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/make/bootstrap.lua b/make/bootstrap.lua
index 36b9ce96..3d2ce465 100644
--- a/make/bootstrap.lua
+++ b/make/bootstrap.lua
@@ -48,7 +48,7 @@ local root; do
if sep == '\\' then
sep = '/\\'
end
- local pattern = "["..sep.."][^"..sep.."]+"
+ local pattern = "["..sep.."]+[^"..sep.."]+"
root = package.cpath:match("([^;]+)"..pattern..pattern.."$")
arg[0] = root .. package.config:sub(1,1) .. 'main.lua'
end