Skip to content

Commit

Permalink
add new Canadian area code 942
Browse files Browse the repository at this point in the history
  • Loading branch information
asolntsev committed Nov 29, 2024
1 parent dd15ce0 commit ab1c267
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ void testPhone_esMx() {
void testPhone_CA(Locale locale) {
String areaCode = "263|354|382|403|587|780|825|236|250|368|428|604|672|778|204|431|506|"
+ "709|782|902|226|249|289|343|365|416|437|519|548|613|647|705|807|905|367|"
+ "418|438|450|468|474|514|579|581|584|683|742|753|819|873|306|639|867|879";
+ "418|438|450|468|474|514|579|581|584|683|742|753|819|873|306|639|867|879|942";
Pattern canadianPhone = Pattern.compile("((\\+1)?(\\(?(%s)\\)?)|(%s))[- .]\\d{3}[- .]\\d{4}".formatted(areaCode, areaCode));
PhoneNumber phoneNumber = new BaseFaker(locale).phoneNumber();
for (int i = 0; i < COUNT; i++) {
Expand Down

0 comments on commit ab1c267

Please sign in to comment.