aboutsummaryrefslogtreecommitdiff
path: root/src/Models
diff options
context:
space:
mode:
authorSergey Chebotar <s.chebotar@gmail.com>2022-12-23 21:20:41 +0300
committerSergey Chebotar <s.chebotar@gmail.com>2022-12-23 21:20:41 +0300
commit755d556f097789f662c43902f5fb59d40138a6f8 (patch)
tree3a86ab5cef37d899af84aaad59d1d7d586b6cdf8 /src/Models
parent0ccbf29382b43d19f7ea0d1f4b5841149137842d (diff)
Delete SkuExtensions class
Diffstat (limited to 'src/Models')
-rw-r--r--src/Models/SkuExtensions.cs12
-rw-r--r--src/Models/SourcePriceList.cs2
2 files changed, 1 insertions, 13 deletions
diff --git a/src/Models/SkuExtensions.cs b/src/Models/SkuExtensions.cs
deleted file mode 100644
index 160dc16..0000000
--- a/src/Models/SkuExtensions.cs
+++ /dev/null
@@ -1,12 +0,0 @@
-using System.Text.RegularExpressions;
-
-namespace RhSolutions.Models
-{
- static class SkuExtensions
- {
- public static bool IsRehauSku(this string line)
- {
- return Regex.IsMatch(line, @"^[1]\d{6}[1]\d{3}$");
- }
- }
-} \ No newline at end of file
diff --git a/src/Models/SourcePriceList.cs b/src/Models/SourcePriceList.cs
index d210c10..ed860b4 100644
--- a/src/Models/SourcePriceList.cs
+++ b/src/Models/SourcePriceList.cs
@@ -87,7 +87,7 @@ namespace RhSolutions.Models
if (group == null || name == null || sku == null)
continue;
- if (!sku.ToString().IsRehauSku())
+ if (!Sku.TryParse(sku.ToString(), out _))
continue;
Product p = new Product