diff --git a/src/Shared/HandyControl_Shared/Tools/RegexJudgment.cs b/src/Shared/HandyControl_Shared/Tools/RegexJudgment.cs index d09062f5d..21aca558a 100644 --- a/src/Shared/HandyControl_Shared/Tools/RegexJudgment.cs +++ b/src/Shared/HandyControl_Shared/Tools/RegexJudgment.cs @@ -102,7 +102,7 @@ public static bool IsUrl(this string str) /// اگر حروف فارسی باشد مقدار صحیح برمیگردد public static bool IsPersian(this string str) { - return Regex.IsMatch(str, RegularPatterns.PersianPattern); + return Regex.IsMatch(str, RegexPatterns.PersianPattern); } /// @@ -113,7 +113,7 @@ public static bool IsPersian(this string str) public static bool IsIranNationalCode(this string str) { // input has 10 digits that all of them are not equal - if (!Regex.IsMatch(str, RegularPatterns.IranNationalCodePattern)) + if (!Regex.IsMatch(str, RegexPatterns.IranNationalCodePattern)) return false; var check = Convert.ToInt32(str.Substring(9, 1));