luci-base: validation.js: optionally support negative prefixes
authorJo-Philipp Wich <jo@mein.io>
Mon, 1 Mar 2021 14:16:14 +0000 (15:16 +0100)
committerJo-Philipp Wich <jo@mein.io>
Mon, 1 Mar 2021 14:16:14 +0000 (15:16 +0100)
commitcd06e708d8d8037486b77dab3389ca91a88f2dd0
treebc81dfc8c7f8ab04f32fadb9b738308e5791fe7f
parent0ee422b4c0e266f0ece70fa60e0ebfa84851992e
luci-base: validation.js: optionally support negative prefixes

Support negative prefix length in the `cidr`, `cidr4`, `cidr6`, `ipmask`,
`ipmask4` and `ipmask6` data types when an optional truish flag is passed
to the datatype name.

Ref: #4812
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-base/htdocs/luci-static/resources/validation.js