Issue Report: Incomplete Validation for Botswana Phone Numbers in libphonenumber

51 views
Skip to first unread message

KAKPO René

unread,
Oct 2, 2023, 5:45:00 AM10/2/23
to libphonenumber-discuss
Hi,

I hope this message finds you well. I would like to bring to your attention an issue related to the Google libphonenumber library, particularly regarding the validation of Botswana phone numbers.

The libphonenumber library currently lacks proper validation for the following Botswana phone number ranges:

- 78200000 to 78299999
- 78300000 to 78399999
- 78400000 to 78499999

Furthermore, to ensure future-proofing, it is essential to add support for upcoming Botswana phone number ranges:

- 78500000 to 78599999
- 78600000 to 78699999
- 78700000 to 78799999

To provide you with a clearer understanding of the issue, here are the details:

Steps to Reproduce:

1. Utilize the libphonenumber library to validate a Botswana phone number within the specified ranges.
2. Observe that the validation fails, even for valid Botswana phone numbers falling within these ranges.

Expected Behavior:

We expect the libphonenumber library to correctly validate Botswana phone numbers within the provided ranges.

Actual Behavior:

Currently, the library does not validate Botswana phone numbers within the specified ranges.

Environment:

- Library Version: 8.13.21
- Programming Language: Java
- Operating System: Android 7.1 or higher

Additional Information:

It is essential to emphasize that these phone number ranges are critical for accurate Botswana phone number validation. Failure to include these ranges could lead to false negatives for legitimate Botswana phone numbers, potentially affecting applications that rely on libphonenumber for phone number validation.

We kindly request your attention to this matter and would greatly appreciate it if the libphonenumber library could be updated to incorporate these Botswana phone number ranges for validation.

Thank you for your prompt attention to this issue, and we look forward to your feedback.

Best regards,

René Kakpo
Mobile Developer Advocate

Rohini Nidhi

unread,
Oct 3, 2023, 10:00:33 AM10/3/23
to libphonenum...@googlegroups.com
Hi,

Thank you for taking the time to improve libphonenumber!

We have responded to bug for investigating this, please refer https://b.corp.google.com/issues/302602696 for further updates.

Regards,
Rohini Nidhi

--
You received this message because you are subscribed to the Google Groups "libphonenumber-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to libphonenumber-di...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/libphonenumber-discuss/421aa756-88fc-4174-a77e-34535b98fa23n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages