made the fs play nice with drive names with numbers in them

This commit is contained in:
Izaya 2017-07-13 20:21:28 +10:00
parent ac9bb0d5cc
commit d8c8dc73d8

View File

@ -1,6 +1,6 @@
fT = {} fT = {}
function fres(p) function fres(p)
local F = (p:match("(%a-):") or p:match("/?(%a-)/")) local F = (p:match("(.-):") or p:match("/?(.-)/"))
local P = (p:match("%a-:(.+)") or p:match("/?%a-/(.+)")) local P = (p:match(".-:(.+)") or p:match("/?.-/(.+)"))
if fT[F] ~= nil then return fT[F],P else return false end if fT[F] ~= nil then return fT[F],P else return false end
end end