Skip to content

Commit

Permalink
Update Legit Phone Number Length to 16
Browse files Browse the repository at this point in the history
Summary: Change the legit phone number length limit to allow 16 characters long.

Reviewed By: liliarizona

Differential Revision: D61604315

fbshipit-source-id: c6d85b8f842de5e37bbcb3ca978e26de3cff8040
  • Loading branch information
stcheng authored and facebook-github-bot committed Aug 21, 2024
1 parent 267c2d2 commit 99152b6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ private static String normalizePhoneNumber(String phoneNumber) {
// Replace white spaces and hyphens
phoneNumber = phoneNumber.replaceAll("[\\-\\s\\(\\)]+", "");

if(phoneNumber.length() < 6 || phoneNumber.length() > 15){
if(phoneNumber.length() < 6 || phoneNumber.length() > 16){
throw new IllegalArgumentException("Invalid phone number format for the passed phone number:" + phoneNumber + ". Please check the passed phone number format.");
}

Expand Down

0 comments on commit 99152b6

Please sign in to comment.