luci-base: add hexstring datatype
authorHannu Nyman <hannu.nyman@iki.fi>
Thu, 9 Feb 2017 14:58:07 +0000 (16:58 +0200)
committerHannu Nyman <hannu.nyman@iki.fi>
Fri, 10 Feb 2017 15:12:57 +0000 (17:12 +0200)
commit5e7b188ecb36e9ac2826b0d88c9fe6fa7a967786
tree73e25c7391009353435209d5a9122a13be8f37b5
parent1f014bd2180b364bec4c3f6457f72a0621884f9a
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 <hannu.nyman@iki.fi>
(cherry picked from commit 11f23559e4be78f202aa55d811d5b58cb0ca0a78)
modules/luci-base/luasrc/cbi/datatypes.lua