- 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 intocakephp:4.xfrom
Conversation
… No need to throw NotImplemented. Copied the US phone validation rules to Canada.
|
Can we have some tests for this please? |
|
Copied the tests as well and they all pass. |
|
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.
|
@jazty Still interested in getting this finished up and merged? |
|
Should we trim and merge or close this? |
|
If we can trim and merge, that would probably be best. |
… No need to throw NotImplemented. Copied the US phone validation rules to Canada.