diff options
author | Sergey Chebotar <s.chebotar@gmail.com> | 2021-12-08 17:20:28 +0300 |
---|---|---|
committer | Sergey Chebotar <s.chebotar@gmail.com> | 2021-12-08 17:20:28 +0300 |
commit | 93835233f3ddc335d93b3092d5ae2fcca87ff2c2 (patch) | |
tree | 7819a5ff6a70c8e358685ceabb9eb29dfc56e794 /Source/Assistant | |
parent | dc1fc8b221e9324fe0f82c4ea4a32d87d282bd25 (diff) |
Edit IsRehauSku regex expression
Diffstat (limited to 'Source/Assistant')
-rw-r--r-- | Source/Assistant/SkuAssist.cs | 4 |
1 files changed, 1 insertions, 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 |