Skip to content

Conversation

rpalladino
Copy link
Contributor

This adds an isUrl() expander with a test case. Like the isEmail() expander, upon which it is based, it handles validation using the PHP filter extension.

@norberttech
Copy link
Member

Thanks @rpalladino!
Could you please also add one example into tests/Coduo/PHPMatcher/MatcherTest.php to expanderExamples method? It's an integration test just to be sure that all expanders are initialized.

This adds an isUrl() expander with a test case. Like the isEmail() expander, upon which it is based, it handles validation using the PHP filter extension.
@rpalladino
Copy link
Contributor Author

Missed that one. I added two examples, one that should be true and one false.

norberttech pushed a commit that referenced this pull request Feb 22, 2015
Add isUrl() pattern expander
@norberttech norberttech merged commit 51f48df into coduo:master Feb 22, 2015
@norberttech
Copy link
Member

@rpalladino thanks a lot! 🍻

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