From 93835233f3ddc335d93b3092d5ae2fcca87ff2c2 Mon Sep 17 00:00:00 2001 From: Sergey Chebotar Date: Wed, 8 Dec 2021 17:20:28 +0300 Subject: [PATCH] Edit IsRehauSku regex expression --- Source/Assistant/SkuAssist.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Source/Assistant/SkuAssist.cs b/Source/Assistant/SkuAssist.cs index eddb0cd..9beb0ce 100644 --- a/Source/Assistant/SkuAssist.cs +++ b/Source/Assistant/SkuAssist.cs @@ -104,9 +104,7 @@ namespace RehauSku.Assistant } public static bool IsRehauSku(this string line) { - return Regex.IsMatch(line, @"\d{11}") && - line[0].Equals('1') && - line[7].Equals('1'); + return Regex.IsMatch(line, @"[1]\d{6}[1]\d{3}"); } } } \ No newline at end of file