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

Matches regex rule #26

Open
wants to merge 5 commits into
base: dev
Choose a base branch
from
Open

Matches regex rule #26

wants to merge 5 commits into from

Conversation

mboiev
Copy link
Collaborator

@mboiev mboiev commented Mar 6, 2020

No description provided.

@jwillp
Copy link
Contributor

jwillp commented Mar 6, 2020

@mboiev Hi Mykhailo, There are some conflicts between your branch and the dev branch.
Could you resolve them first?
I will still make a review of what you wrote, but it the conflicts have to be resolved, otherwise I wont't be able to merge your PR.

*/
public function validate($v): bool
{
return preg_match($this->regex, $v) != 0?true:false;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need to return true or false, here.
The following line:

preg_match($this->regex, $v) != 0  

Will already return a boolean.

@jwillp jwillp self-requested a review March 8, 2020 16:33
@jwillp jwillp linked an issue Mar 8, 2020 that may be closed by this pull request
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.

Add Password checking related validation rules
2 participants