Created on 26 March 2025, 14 days ago

Problem/Motivation

Telephone number input is not validated, while the api expects a specific format.

I haven't found specs for api.whatsapp.com/send yet, but i guess it's the same as https://faq.whatsapp.com/5913398998672934?locale=en_US&cms_id=5913398998...

...a full phone number in international format. Omit any zeroes, brackets, or dashes when adding the phone number in international format.

Steps to reproduce

Just enter a phone number having space or missing country code.

Proposed resolution

I'm thinking

  • Stripping any non-numerical characters, except for the + (or can be again prepended afterwards) and keep this result as submitted value
  • Validate the cleaned value against know regex + error on failure.
🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇧🇪Belgium andreasderijcke Antwerpen / Gent

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024