From e175a634cefc6e8c0ecd49514a89b1d4f30ce33b Mon Sep 17 00:00:00 2001 From: Sergey Chebotar Date: Mon, 13 Dec 2021 20:39:41 +0300 Subject: Refactoring. ExcelDNA.IntelliSense library add. Add description to Excel functions. --- Source/Assistant/SkuExtension.cs | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 Source/Assistant/SkuExtension.cs (limited to 'Source/Assistant/SkuExtension.cs') diff --git a/Source/Assistant/SkuExtension.cs b/Source/Assistant/SkuExtension.cs new file mode 100644 index 0000000..51aaf6c --- /dev/null +++ b/Source/Assistant/SkuExtension.cs @@ -0,0 +1,12 @@ +using System.Text.RegularExpressions; + +namespace RehauSku.Assistant +{ + static class SkuExtension + { + 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