From 7f76188b81c92fbc36ee97e0f82b2de3235f4ae4 Mon Sep 17 00:00:00 2001 From: citizen-VM Date: Mon, 19 Oct 2020 13:55:38 +0200 Subject: [PATCH] fix: enforcing the 'no W in the key' condition --- main_form.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main_form.cs b/main_form.cs index 46c9332..5f712eb 100644 --- a/main_form.cs +++ b/main_form.cs @@ -104,10 +104,10 @@ namespace KRY_0x01_ng return false; } - Match match = Regex.Match(str_to_check, @"\d|\s+"); + Match match = Regex.Match(str_to_check, @"\d|\s+|W"); if (match.Success) { - MessageBox.Show("Only alphabetic characters are allowed.\nCheck the key for numbers, symbols or tab whitespace and remove them before continuing.", "Error: invalid chars in key"); + MessageBox.Show("Only alphabetic characters (with the exception of 'W') are allowed.\nCheck the key for numbers, symbols or tab whitespace and remove them before continuing.", "Error: invalid chars in key"); return false; }