aboutsummaryrefslogtreecommitdiff
path: root/Source/Assistant/SkuExtensions.cs
diff options
context:
space:
mode:
authorSergey Chebotar <s.chebotar@gmail.com>2021-12-22 17:07:37 +0300
committerSergey Chebotar <s.chebotar@gmail.com>2021-12-22 17:07:37 +0300
commitce5597d042062c820288c63b4e571ee77ac23ab0 (patch)
tree9400511fce89ae4b6d4df205b605f560778dcb57 /Source/Assistant/SkuExtensions.cs
parentf97d344f39c46b5e2f883765e8859e78007a11b0 (diff)
RegistryUtil and some fixes
Diffstat (limited to 'Source/Assistant/SkuExtensions.cs')
-rw-r--r--Source/Assistant/SkuExtensions.cs12
1 files changed, 12 insertions, 0 deletions
diff --git a/Source/Assistant/SkuExtensions.cs b/Source/Assistant/SkuExtensions.cs
new file mode 100644
index 0000000..e39807b
--- /dev/null
+++ b/Source/Assistant/SkuExtensions.cs
@@ -0,0 +1,12 @@
+using System.Text.RegularExpressions;
+
+namespace RehauSku.Assistant
+{
+ 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