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

Added isIp() pattern expander #131

Merged

Conversation

thomasbisignani
Copy link
Contributor

@thomasbisignani thomasbisignani commented Apr 29, 2018

This PR adds an isIp()pattern expander, it is based on the PHP filter extension.
This pattern checks IPv4 and IPv6 addresses within public, private and reserved range.

Example usage :

if (!PHPMatcher::match("127.0.0.1", "@[email protected]()", $error)) {
    echo $error;
} else {
    echo "Matched.";
}

@thomasbisignani thomasbisignani force-pushed the feature/added-isip-expander branch from 04d20d4 to c8dc658 Compare April 29, 2018 20:11
@norberttech norberttech merged commit ae1c473 into coduo:master Apr 30, 2018
@norberttech
Copy link
Member

hey @thomasbisignani I like this one! Thanks for your contribution! 🎉 🍻

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