File tree Expand file tree Collapse file tree 2 files changed +1
-2
lines changed
Adia.Ssn.Tests/Validators
Adia.SsnValidator/Validators Expand file tree Collapse file tree 2 files changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,6 @@ public void Setup()
25
25
[ TestCase ( "756.0298.4726.97" , true ) ]
26
26
[ TestCase ( "756.5113.6381.28" , true ) ]
27
27
[ TestCase ( "756.5466.9658.89" , true ) ]
28
- [ TestCase ( "756.5466.9658.89" , true ) ]
29
28
[ TestCase ( "756.5466.965889" , false ) ]
30
29
[ TestCase ( "755:5466.9658.89" , false ) ]
31
30
[ TestCase ( "7561656967213" , false ) ]
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ public class AhvValidator : IValidator
8
8
{
9
9
public bool Validate ( string ahv )
10
10
{
11
- var regex = new Regex ( @"^756\.[\d] {4}[\.][\d] {4}[\.][\d] {2}$" ) ;
11
+ var regex = new Regex ( @"^756\.\d {4}\.\d {4}\.\d {2}$" ) ;
12
12
if ( ! regex . IsMatch ( ahv ) )
13
13
{
14
14
return false ;
You can’t perform that action at this time.
0 commit comments