Skip to content

isValidPhoneNumber returning true ignoring region #789

Closed
@miguelgazela

Description

@miguelgazela

New Issue Checklist

Steps to reproduce

I'm trying to validate a phone number provided for a specific region, but if I give it with the country code behind it ignores the region I'm passing it and considers it valid.

let validPhoneNumber = phoneNumberKit?.isValidPhoneNumber("+351916693528", withRegion: "US")
Expected result

validPhoneNumber should be false

Actual result

validPhoneNumber is true

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions