magento / magento/community-features

Add international phone number validation

Open
#276 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Priority: P3
Dominant language
No language data
Stars
46
Forks
14
PR merge metrics
No merged PRs in 30d

Description

Right now, the built-in phone number validation includes the following:

  • US format
  • UK format
  • UK (mobile) format
  • Strict (validates to only US format)
  • Lax (not empty, suggests US format in text)

A phone number could include any numbers, as well as the symbols + ( ) - #

For example, (+44) 1234 2553-421 #8 might be a UK number with extension 8.

It would be nice to have an international phone number validation option which allows any combination of those characters. Especially in a modern, global world where everyone's buying things online from everywhere on the internet, it's important to have global validation like this.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No files, tests, or entry points are named in the issue, so first locate the built-in phone validation options and their tests. The work is done when an international option accepts digits and the symbols + ( ) - #, including numbers with extensions such as the example, without changing the existing formats.

Written by the indexing model from the issue text.

Assessment

Domain
backend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.