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:19:21 +0000 (15:19 +0100)
commita483ae4371e41c6c781eba6824aca4174c317895
tree65074a61b1327f68f4a17b70b5f117d71a552d01
parentee07c302073db861766e376c6362daf48c6f97b9
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>
(cherry picked from commit cd06e708d8d8037486b77dab3389ca91a88f2dd0)
modules/luci-base/htdocs/luci-static/resources/validation.js