summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2010-10-30 18:18:18 +0000
committerJo-Philipp Wich <jow@openwrt.org>2010-10-30 18:18:18 +0000
commit29f0b48ddc46564e6d9bf3e64c763128e0235b10 (patch)
tree6db494e6564c6d85d8c80f541ab7c59aeb3c3f91
parent46222415352ac3b5a99570178a4ed46b759c2e82 (diff)
libs/web: fix type in datatypes.lua
-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