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

- phone numbers in Canada are of the same format as those in the USA.… #146

Open
wants to merge 4 commits into
base: 4.x
Choose a base branch
from

Conversation

jazty
Copy link

@jazty jazty commented Jan 25, 2017

… No need to throw NotImplemented. Copied the US phone validation rules to Canada.

… No need to throw NotImplemented. Copied the US phone validation rules to Canada.
@dereuromark
Copy link
Member

Can we have some tests for this please?

@jazty
Copy link
Author

jazty commented Jan 25, 2017

Copied the tests as well and they all pass.

@dereuromark
Copy link
Member

Thx, looks good to me 👍

Jesse Aleksanter Kahtava added 2 commits January 26, 2017 13:10
@@ -59,3 +108,101 @@ public static function personId($check)
throw new NotImplementedException(__d('localized', '%s Not implemented yet.'));
}
}

class InvalidNumberRule
Copy link
Member

Choose a reason for hiding this comment

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

Why did you implement this now? The previous PR was good to go, but now you introduce a lot of debatable code pieces here.

Copy link
Member

Choose a reason for hiding this comment

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

Not that a separate class over regexp wouldn't be a viable option, but this looks like a snowflake between all the other validation rules if not applied on a more discussed and global level.

Copy link
Author

@jazty jazty Jan 26, 2017

Choose a reason for hiding this comment

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

I pushed it to my own fork. Didn't think it would trickle down... I just needed something more robust and the regex was not working for some real area codes (likewise, it let some invalid area codes through). You can ignore it... or is there something I can do to hide it? I'll look into that.

Copy link
Member

Choose a reason for hiding this comment

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

You can rebase, sqash and we can sure merge it then for now :) Thx.

@dereuromark
Copy link
Member

@jazty Still interested in getting this finished up and merged?

@othercorey
Copy link
Member

Should we trim and merge or close this?

@othercorey othercorey changed the base branch from master to 4.x October 16, 2021 07:03
@dereuromark
Copy link
Member

If we can trim and merge, that would probably be best.
Just closing is easiest, but then nothing is gained.

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.

3 participants