Frankly Designate should not be using regex to parse these addresses at all.
It should use python ipaddress module and normalize the address (explode for example) and use __format__ on the IPv6Address object to manipulate it for other required representations.
Frankly Designate should not be using regex to parse these addresses at all.
It should use python ipaddress module and normalize the address (explode for example) and use __format__ on the IPv6Address object to manipulate it for other required representations.