Skip to content

Commit

Permalink
Fix whitespace separator issue
Browse files Browse the repository at this point in the history
  • Loading branch information
frozzare authored and Johannestegner committed Jun 5, 2021
1 parent e628280 commit d1ddd4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Personnummer/Personnummer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ public static bool Valid(string ssn)
}

#region Static internal.
private static readonly Regex regex = new Regex(@"^(\d{2}){0,1}(\d{2})(\d{2})(\d{2})([\+\-\s]?)((?!000)\d{3})(\d)$");
private static readonly Regex regex = new Regex(@"^(\d{2}){0,1}(\d{2})(\d{2})(\d{2})([\+\-]?)((?!000)\d{3})(\d)$");

private static int Luhn(string value)
{
Expand Down

0 comments on commit d1ddd4c

Please sign in to comment.