Skip to content

Commit f7fe75e

Browse files
committed
β0.1.1 Fix bug with Path:join()
1 parent b7fac14 commit f7fe75e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

core/path.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ function Path:join(path)
270270
path = assert(tostring(copy:get_directory())) .. path:sub(4)
271271
elseif path:sub(1, 1) == "." and path:sub(2, 2) == "/" then
272272
path = assert(tostring(self:get_directory())) .. path:sub(3)
273-
elseif path.sub(1, 1) ~= "/" then
273+
elseif path:sub(1, 1) ~= "/" and path:sub(1, 1) ~= "~" then
274274
path = assert(tostring(self:get_directory())) .. path
275275
end
276276
return Path:new(path)

core/version.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
return "β0.1.0"
1+
return "β0.1.1"

0 commit comments

Comments
 (0)