aboutsummaryrefslogtreecommitdiff
path: root/src/AddIn/SkuExtensions.cs
diff options
context:
space:
mode:
authorSergey Chebotar <s.chebotar@gmail.com>2022-02-04 17:13:47 +0300
committerSergey Chebotar <s.chebotar@gmail.com>2022-02-04 17:13:47 +0300
commitcc96e1ebe7255c7278c70cef0f951103e9844487 (patch)
tree85f8c6573b5c162c21a0adc192560a4e53732f69 /src/AddIn/SkuExtensions.cs
parent6e889419e2658a3a80fa00582314f1428f6052e5 (diff)
Implement Enable/Disable tools buttons events
Diffstat (limited to 'src/AddIn/SkuExtensions.cs')
-rw-r--r--src/AddIn/SkuExtensions.cs12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/AddIn/SkuExtensions.cs b/src/AddIn/SkuExtensions.cs
new file mode 100644
index 0000000..c7fe2bc
--- /dev/null
+++ b/src/AddIn/SkuExtensions.cs
@@ -0,0 +1,12 @@
+using System.Text.RegularExpressions;
+
+namespace RehauSku
+{
+ 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