From 2fff224e6aa2816893854f9045713b850b66ca29 Mon Sep 17 00:00:00 2001 From: amy Date: Thu, 16 Feb 2023 08:03:31 -0600 Subject: uhh forgor --- src/badge-gen.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/badge-gen.lua') diff --git a/src/badge-gen.lua b/src/badge-gen.lua index 3cda339..a6c61ec 100644 --- a/src/badge-gen.lua +++ b/src/badge-gen.lua @@ -1,7 +1,9 @@ local path = "./badges/" local badges = io.popen("dir "..path) if badges then - for i in string.gmatch(badges:read("*a"), "(.-)\n") do - io.write("\""..path..i.."\""); + for i in badges:read("*a"):gmatch("(.-)\n") do + for w in i:gmatch("%S+") do + io.write("\""..path..w.."\""); + end end end -- cgit v1.2.3