summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--libs/web/luasrc/cbi/datatypes.lua2
1 files changed, 1 insertions, 1 deletions
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