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 a9aba95493930bd631b62a49c2c1019bc11c7be0..f8d81537793251f1d909931bb06c800818005b44 100644 (file)
@@ -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