mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-08-05 21:07:49 +01:00
Make phone number validity test work for Faroe islands and elsewhere.
// FREEBIE
This commit is contained in:
@@ -36,7 +36,10 @@ public class PhoneNumberFormatter {
|
||||
private static final String TAG = PhoneNumberFormatter.class.getSimpleName();
|
||||
|
||||
public static boolean isValidNumber(String number) {
|
||||
return number.matches("^\\+[0-9]{10,}");
|
||||
return number.matches("^\\+[0-9]{10,}") ||
|
||||
number.matches("^\\+298[0-9]{6}") ||
|
||||
number.matches("^\\+240[0-9]{6}") ||
|
||||
number.matches("^\\+689[0-9]{6}");
|
||||
}
|
||||
|
||||
private static String impreciseFormatNumber(String number, String localNumber)
|
||||
|
||||
Reference in New Issue
Block a user