made fs.resolve remove trailing /s

This commit is contained in:
Izaya 2018-05-25 10:51:32 +10:00
parent 7e9758ca6d
commit e74b8282c6
1 changed files with 1 additions and 0 deletions

View File

@ -14,6 +14,7 @@ function fs.resolve(path)
for i = 2, #segments do
rpath = rpath .. segments[i] .. "/"
end
rpath = rpath:match("(.+)/") or rpath
return segments[1],rpath
end