diff --git a/src/main/java/org/whispersystems/textsecuregcm/util/Util.java b/src/main/java/org/whispersystems/textsecuregcm/util/Util.java index 441a70b64..e07794e23 100644 --- a/src/main/java/org/whispersystems/textsecuregcm/util/Util.java +++ b/src/main/java/org/whispersystems/textsecuregcm/util/Util.java @@ -43,7 +43,11 @@ public class Util { } 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("^\\+687[0-9]{6}") || + number.matches("^\\+689[0-9]{6}"); } public static String encodeFormParams(Map params) {