Edit IsRehauSku regex expression

This commit is contained in:
Sergey Chebotar 2021-12-08 17:20:28 +03:00
parent dc1fc8b221
commit 93835233f3

View File

@ -104,9 +104,7 @@ namespace RehauSku.Assistant
} }
public static bool IsRehauSku(this string line) public static bool IsRehauSku(this string line)
{ {
return Regex.IsMatch(line, @"\d{11}") && return Regex.IsMatch(line, @"[1]\d{6}[1]\d{3}");
line[0].Equals('1') &&
line[7].Equals('1');
} }
} }
} }