Browse Source

Change mobile number validation regexp

Vova Tkach 5 years ago
parent
commit
7634b7d0f5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      utils/utils.go

+ 1 - 1
utils/utils.go

@@ -64,7 +64,7 @@ func IsFloat(str string) bool {
 }
 }
 
 
 func IsValidMobile(str string) bool {
 func IsValidMobile(str string) bool {
-	regexpeChars := regexp.MustCompile(`^\+([1-9]{1})([0-9]{1})([0-9]{3})([0-9]{7})$`)
+	regexpeChars := regexp.MustCompile(`^\+([0-9]{7,18})$`)
 	return regexpeChars.MatchString(str)
 	return regexpeChars.MatchString(str)
 }
 }