luci-base: add hexstring datatype
authorHannu Nyman <[email protected]>
Thu, 9 Feb 2017 14:58:07 +0000 (16:58 +0200)
committerHannu Nyman <[email protected]>
Thu, 9 Feb 2017 14:58:07 +0000 (16:58 +0200)
commit11f23559e4be78f202aa55d811d5b58cb0ca0a78
treed1cafc213455ee135719377e2a03b8c29eb56de6
parent02bed261881dd60f212f81e7ed3e3afeb4bd890d
luci-base: add hexstring datatype

Add datatype 'hexstring' for input validaiton datatypes.

It will accept any hexadecimal string.

(no length validation, as rangelength can be used for that.)

Signed-off-by: Hannu Nyman <[email protected]>
modules/luci-base/luasrc/cbi/datatypes.lua