We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1523ce7 commit 057b2aeCopy full SHA for 057b2ae
src/KSFramework/Utilities/ValidationExtensions.cs
@@ -22,7 +22,7 @@ public static bool IsValidEmail(this string email)
22
23
public static bool IsValidMobile(this string phone)
24
{
25
- return Regex.IsMatch(phone, @"^(?:\+?\d{1,3}[.-\s]?)?(?:\(0?\d{1,4}\)|0?\d{1,4})?[.-\s]?\d{1,4}[.-\s]?\d{1,9}$");
+ return Regex.IsMatch(phone, @"(?:(?:\+|00)?\d{1,4})?[-\s\.]?(?:0)?\d{6,14}");
26
}
27
28
0 commit comments