Skip to content

Commit 3537196

Browse files
committed
Handle repeated sep
1 parent 7842cd0 commit 3537196

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

make/bootstrap.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ local root; do
4848
if sep == '\\' then
4949
sep = '/\\'
5050
end
51-
local pattern = "["..sep.."][^"..sep.."]+"
51+
local pattern = "["..sep.."]+[^"..sep.."]+"
5252
root = package.cpath:match("([^;]+)"..pattern..pattern.."$")
5353
arg[0] = root .. package.config:sub(1,1) .. 'main.lua'
5454
end

0 commit comments

Comments
 (0)