Skip to content

[HOLD for payment 2023-03-16] Allow searching for phone numbers with parenthesis, spaces and dashes in them #15491

Description

@puneetlath

Problem

It is very common for phone numbers to be formatted with dashes, parenthesis, and spaces. For example, my iPhone will automatically format 2345678899 to (234) 567-8899. If I then copy that phone number into the New Chat page in Expensify, it won't recognize it as a phone number that I can create a chat with. It only recognizes 2345678899 or +12345678899.

IMG_86826ACF5668-1

This is unlike the sign in page, which handles phone numbers like this just fine.

Solution

Treat phone numbers with these characters as phone numbers. We should not modify the user's input that they type, but we should strip these characters when validating whether it is a phone number. That would mean that I can create a chat with (234) 567-8899. Or, if I search for (234) 567-8899 it will find my chat with +12345678899.

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~0185423b9270557864
  • Upwork Job ID: 1630220601905479680
  • Last Price Increase: 2023-02-27

Metadata

Metadata

Labels

Awaiting PaymentAuto-added when associated PR is deployed to productionInternalRequires API changes or must be handled by Expensify staffNewFeatureSomething to build that is a new item.WeeklyKSv2

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions