libs/web: fix type in datatypes.lua
authorJo-Philipp Wich <jow@openwrt.org>
Sat, 30 Oct 2010 18:18:18 +0000 (18:18 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Sat, 30 Oct 2010 18:18:18 +0000 (18:18 +0000)
libs/web/luasrc/cbi/datatypes.lua

index a9aba95..f8d8153 100644 (file)
@@ -206,5 +206,5 @@ function device( val, seen )
 end
 
 function uciname(val)
 end
 
 function uciname(val)
-       return (val:match("^[a-zA-Z0-9_]+$") != nil)
+       return (val:match("^[a-zA-Z0-9_]+$") ~= nil)
 end
 end