From cc96e1ebe7255c7278c70cef0f951103e9844487 Mon Sep 17 00:00:00 2001 From: Sergey Chebotar Date: Fri, 4 Feb 2022 17:13:47 +0300 Subject: Implement Enable/Disable tools buttons events --- src/AddIn/SkuExtensions.cs | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 src/AddIn/SkuExtensions.cs (limited to 'src/AddIn/SkuExtensions.cs') 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 -- cgit v1.2.3