Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add FIXED_LINE_OR_MOBILE numbers to pass homeno validation #886

Merged
merged 1 commit into from
Dec 16, 2020

Conversation

karrui
Copy link
Contributor

@karrui karrui commented Dec 15, 2020

Problem

Some legit office landline numbers are being marked as invalid due to not being labeled as FIXED_LINE numbers by google's libphonenumber, but as FIXED_LINE_OR_MOBILE. This PR loosens the homeno validation to allow for the latter type.

Solution

Features:

  • feat: add FIXED_LINE_OR_MOBILE numbers to pass homeno validation

Before & After Screenshots

BEFORE:
Screenshot 2020-12-15 at 10 11 29 AM

AFTER:

Screenshot 2020-12-15 at 10 11 41 AM

Copy link
Contributor

@tshuli tshuli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@liangyuanruo
Copy link
Contributor

how was this discovered again?

@liangyuanruo liangyuanruo merged commit 811ab92 into develop Dec 16, 2020
@liangyuanruo liangyuanruo deleted the feat/relax-homeno-field branch December 16, 2020 03:14
@karrui
Copy link
Contributor Author

karrui commented Dec 16, 2020

how was this discovered again?

syan sent me an email from a form admin asking why office numbers don't work on a home number field

@tshuli tshuli mentioned this pull request Dec 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants