Do not require first element to be a hex value at any costs. It may also be a : in the valid address ::1

Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
DL6ER
2020-08-04 22:09:33 +02:00
parent 0865123914
commit a612b14680

View File

@@ -150,7 +150,7 @@ function validateIPv6CIDR(ip) {
var ipv6validator = new RegExp(
"^(((?:" +
ipv6elem +
"))((?::" +
"))*((?::" +
ipv6elem +
"))*::((?:" +
ipv6elem +