Skip to content

The phone number regex is too rigid #146

@TypicallyThomas

Description

@TypicallyThomas

Depending on country codes, country you're in etc. the format of a phone number can be very different, so using the regex /\(?\d{3}\)?[\s-]?\d{3}[\s-]?\d{4}/ is too restrictive. The model is detecting my phone number, but with confidence 0 (as opposed to everything else being -5) but is not parsing it. Is this a common regex used or is this particular parser too rigid?

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