Uh oh!
There was an error while loading. Please reload this page.
- phone numbers in Canada are of the same format as those in the USA.… - #146
- phone numbers in Canada are of the same format as those in the USA.…#146jazty wants to merge 4 commits into
Conversation
… No need to throw NotImplemented. Copied the US phone validation rules to Canada.
dereuromark
commented
Jan 25, 2017
Can we have some tests for this please? |
jazty
commented
Jan 25, 2017
Copied the tests as well and they all pass. |
dereuromark
commented
Jan 25, 2017
Thx, looks good to me 👍 |
lot of problems and was difficult to maintain.
| } | ||
| } | ||
| class InvalidNumberRule |
There was a problem hiding this comment.
Why did you implement this now? The previous PR was good to go, but now you introduce a lot of debatable code pieces here.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
You can rebase, sqash and we can sure merge it then for now :) Thx.
dereuromark
commented
Apr 19, 2017
@jazty Still interested in getting this finished up and merged? |
othercorey
commented
May 12, 2020
Should we trim and merge or close this? |
dereuromark
commented
Jan 17, 2023
If we can trim and merge, that would probably be best. |
… No need to throw NotImplemented. Copied the US phone validation rules to Canada.