Skip to content

Commit 9bce8c2

Browse files
authored
Merge pull request #943 from st9007a/fix-root-dir-regex-pattern
Fix regular expression to find root directory in make/bootstrap.lua
2 parents 89a1944 + 3537196 commit 9bce8c2

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)