Skip to content
This repository has been archived by the owner on Jul 20, 2022. It is now read-only.

Storing typical phone number lengths #185

Open
marchellodev opened this issue Jan 28, 2022 · 1 comment
Open

Storing typical phone number lengths #185

marchellodev opened this issue Jan 28, 2022 · 1 comment

Comments

@marchellodev
Copy link

Duplicate of #126 & #154

In the generic log-in use case, the phone number needs to be validated before we can actually allow the user to submit it. However, it is impossible to check if the number is correct since we do not know how many digits the country's typical phone number has.

For example, Ukrainian numbers have the prefix +380 and then 9 digits (ex. +380 95 077 3308 = total 12 digits), whereas Russian numbers have the prefix +7 and then 10 digits (ex. +7 499 077 33 08 = total 11 digits). Therefore, we cannot say whether a given number is valid without knowing how many digits the number is supposed to have.

Therefore, we should also store the phone number lengths in the dataset.

@marchellodev
Copy link
Author

marchellodev commented Jan 28, 2022

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant