From d1ddd4ca7e982f2c55a1910a612c0c9e77575d67 Mon Sep 17 00:00:00 2001 From: Fredrik Forsmo Date: Sat, 5 Jun 2021 10:38:31 +0200 Subject: [PATCH] Fix whitespace separator issue --- Personnummer/Personnummer.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Personnummer/Personnummer.cs b/Personnummer/Personnummer.cs index 102baae..73a8750 100644 --- a/Personnummer/Personnummer.cs +++ b/Personnummer/Personnummer.cs @@ -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) {