Validation icon indicating copy to clipboard operation
Validation copied to clipboard

Validate a single IP or a series of IP without range

Open DavidePastore opened this issue 8 years ago • 2 comments

I'm using the IP validator and I'd like to not use the range but a single IP or a series of IP. For example:

v::ip('127.0.0.1')->validate('127.0.0.1');
v::ip(['127.0.0.1', '127.0.0.2'])->validate('127.0.0.1');

You could say that I could just use v::in(...) but this is something connected to the IP world and I think this should be included in the validator. It would be awesome if this library could support this. Anyway I could help to make this change.

DavidePastore avatar Jan 11 '17 10:01 DavidePastore

With so many open issues, it's become hard to really know what's really important and what I have fixed already.

I'm closing issues that are too old, and I'm not really looking at them all. If this is still relevant, please comment here and I will reopen this issue.

Thanks for reporting! 🐼

henriquemoody avatar Oct 04 '20 10:10 henriquemoody

Hi @henriquemoody . As far as I can see this issue is still relevant so I think it could be reopened.

DavidePastore avatar Oct 06 '20 07:10 DavidePastore

I've added tests and docs for this feature, which is supported with the - dash notation.

alganet avatar Feb 18 '23 21:02 alganet