Skip to content

Validity check inconsistencies between other phone number validation packages #30

@afeldmannSP

Description

@afeldmannSP

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions