Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open to adding an expanded method on IP? #34

Open
emil-nasso opened this issue Oct 18, 2021 · 0 comments
Open

Open to adding an expanded method on IP? #34

emil-nasso opened this issue Oct 18, 2021 · 0 comments

Comments

@emil-nasso
Copy link

Hi!

I (we) find the library very useful. I am missing one feature though, for it to completely fulfill my "IP needs".

Would you be open to accepting a pull request adding a expanded(): string method to the IP class?

It would work in the following way:

IP::parse('::1')->expanded(); // would return: 0000:0000:0000:0000:0000:0000:0000:0001
IP::parse('127.0.0.1')->expanded(); // would return: 127.0.0.1

I would include test (of course).

I wanted to check in first, because it seems like the library hasn't been updated in a long time.

The IP standards doesn't really see frequent changes either so maybe the library is regarded as "feature complete"? :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant