From 73557fb83bf3d92b56d61473364d806097175c60 Mon Sep 17 00:00:00 2001 From: Olivier DOSSMANN Date: Tue, 14 May 2013 16:19:35 +0200 Subject: [PATCH] [FIX] Problem with commented lines in configuration files --- categ/display.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/categ/display.lua b/categ/display.lua index c8359eb..315b923 100755 --- a/categ/display.lua +++ b/categ/display.lua @@ -11,7 +11,7 @@ function process(filepath) -- parse given file for line in io.lines(filepath) do -- check if this line is a comment ("# my comment"), a category ("[[My category]]Its description") or an element ("Title##Description##URL##Image") - is_comment = string.find(line, '^#(.*)') + is_comment = string.find(line, '^#+.*') is_title = string.find(line, '%[%[(.*)%]%](.*)') is_element = string.find(line, '(.*)##(.*)##(.*)##(.*)') if is_comment then