From 29f0b48ddc46564e6d9bf3e64c763128e0235b10 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Sat, 30 Oct 2010 18:18:18 +0000 Subject: libs/web: fix type in datatypes.lua --- libs/web/luasrc/cbi/datatypes.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/web/luasrc/cbi/datatypes.lua b/libs/web/luasrc/cbi/datatypes.lua index a9aba9549..f8d815377 100644 --- a/libs/web/luasrc/cbi/datatypes.lua +++ b/libs/web/luasrc/cbi/datatypes.lua @@ -206,5 +206,5 @@ function device( val, seen ) end function uciname(val) - return (val:match("^[a-zA-Z0-9_]+$") != nil) + return (val:match("^[a-zA-Z0-9_]+$") ~= nil) end -- cgit v1.2.3