From 5c4a002a46b91c6b6129907cdf96f210561786a3 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Fri, 9 Oct 2009 00:45:47 +0000 Subject: [PATCH] libs/cbi: allow underscores in AbstractSection.create() --- libs/cbi/luasrc/cbi.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/cbi/luasrc/cbi.lua b/libs/cbi/luasrc/cbi.lua index 23a5f01a5..1b22db0a8 100644 --- a/libs/cbi/luasrc/cbi.lua +++ b/libs/cbi/luasrc/cbi.lua @@ -931,7 +931,7 @@ function AbstractSection.create(self, section) local stat if section then - stat = section:match("^%w+$") and self.map:set(section, nil, self.sectiontype) + stat = section:match("^[%w_]+$") and self.map:set(section, nil, self.sectiontype) else section = self.map:add(self.sectiontype) stat = section -- 2.25.1