From d8c8dc73d889bce7aa7c1d8b35f2cdf2834da6c1 Mon Sep 17 00:00:00 2001 From: XeonSquared Date: Thu, 13 Jul 2017 20:21:28 +1000 Subject: [PATCH] made the fs play nice with drive names with numbers in them --- modules/library/fs-min.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/library/fs-min.lua b/modules/library/fs-min.lua index 7415c52..7b22c5f 100644 --- a/modules/library/fs-min.lua +++ b/modules/library/fs-min.lua @@ -1,6 +1,6 @@ fT = {} function fres(p) - local F = (p:match("(%a-):") or p:match("/?(%a-)/")) - local P = (p:match("%a-:(.+)") or p:match("/?%a-/(.+)")) + local F = (p:match("(.-):") or p:match("/?(.-)/")) + local P = (p:match(".-:(.+)") or p:match("/?.-/(.+)")) if fT[F] ~= nil then return fT[F],P else return false end end