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

Add isValidCIDR method #176

Merged
merged 1 commit into from
Feb 27, 2024
Merged

Add isValidCIDR method #176

merged 1 commit into from
Feb 27, 2024

Conversation

jeremy-code
Copy link
Contributor

This adds a helper method "isValidCIDR" to both v4 and v6, which returns true if can be parsed by parseCIDR, and false if an exception is thrown.

@whitequark whitequark merged commit 32c4f03 into whitequark:main Feb 27, 2024
5 checks passed
@whitequark
Copy link
Owner

Thanks!

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

Successfully merging this pull request may close these issues.

2 participants