projects
/
project
/
luci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
libs/web: introduce "uciname" datatype for cbi validation
[project/luci.git]
/
libs
/
web
/
htdocs
/
luci-static
/
resources
/
cbi.js
diff --git
a/libs/web/htdocs/luci-static/resources/cbi.js
b/libs/web/htdocs/luci-static/resources/cbi.js
index
b4137d4
..
8e2f62a
100644
(file)
--- a/
libs/web/htdocs/luci-static/resources/cbi.js
+++ b/
libs/web/htdocs/luci-static/resources/cbi.js
@@
-152,6
+152,10
@@
var cbi_validators = {
return (v.length == 5) || (v.length == 13);
},
+ 'uciname': function(v)
+ {
+ return (v.match(/^[a-zA-Z0-9_]+$/) != null);
+ }
};