diff --git a/source/Main.brs b/source/Main.brs index dad61438..0fb73d79 100644 --- a/source/Main.brs +++ b/source/Main.brs @@ -68,7 +68,7 @@ sub Main (args as dynamic) as void filename = APIRequest("FallbackFont/Fonts").GetToString() if isValid(filename) filename = re.match(filename) - if filename.count() > 0 + if isValid(filename) and filename.count() > 0 filename = filename[1] APIRequest("FallbackFont/Fonts/" + filename).gettofile("tmp:/font") end if