ronin-rb / ronin-support

A support library for Ronin. Like activesupport, but for hacking!
https://ronin-rb.dev
GNU Lesser General Public License v3.0
25 stars 9 forks source link

Add a regex for validating CIDR address ranges in `Network::IPRange::CIDR#initialize` #474

Closed postmodern closed 5 months ago

postmodern commented 5 months ago

Add a regex for validating IPv4 and IPv6 CIDR ranges to Network::IPRange::CIDR. This regex will be used to validate strings given to CIDR#initialize. If the string does not match the regex, an ArgumentError should be raised.

postmodern commented 5 months ago

Implemented by 6b5fd7d.