aboutsummaryrefslogtreecommitdiff
path: root/Source/Assistant/SkuExtension.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Assistant/SkuExtension.cs')
-rw-r--r--Source/Assistant/SkuExtension.cs12
1 files changed, 12 insertions, 0 deletions
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