We use the dialr package using the most recent version 0.4.2 as part of a system that handles phone numbers using various different languages. As such, we have phone number validation to perform in R using the dialr package and in nodeJS using the 'phonenumber' package. We have noticed consistently that newer area codes seem to be flagged as invalid when other services will not flag them as invalid, and it has raised the concern that this package may be missing support for newer area codes. Some area codes we have run into this issue with are 340, 730, and 227. See below for reprex in R using a valid phone number using the new as of 2022 area code 227
is_valid(phone('2279600788', region = 'NA'))
|======================================================================================================================| 100%
[1] FALSE
We use the dialr package using the most recent version 0.4.2 as part of a system that handles phone numbers using various different languages. As such, we have phone number validation to perform in R using the dialr package and in nodeJS using the 'phonenumber' package. We have noticed consistently that newer area codes seem to be flagged as invalid when other services will not flag them as invalid, and it has raised the concern that this package may be missing support for newer area codes. Some area codes we have run into this issue with are
340,730, and227. See below for reprex in R using a valid phone number using the new as of 2022 area code227