Skip to content

Commit

Permalink
Update RegexJudgment.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
ghost1372 committed Jul 11, 2020
1 parent 7c66586 commit 8900441
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Shared/HandyControl_Shared/Tools/RegexJudgment.cs
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ public static bool IsUrl(this string str)
/// <returns>اگر حروف فارسی باشد مقدار صحیح برمیگردد</returns>
public static bool IsPersian(this string str)
{
return Regex.IsMatch(str, RegularPatterns.PersianPattern);
return Regex.IsMatch(str, RegexPatterns.PersianPattern);
}

/// <summary>
Expand All @@ -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));
Expand Down

0 comments on commit 8900441

Please sign in to comment.