fix: enforcing the 'no W in the key' condition

This commit is contained in:
citizen-VM 2020-10-19 13:55:38 +02:00
parent 048c46567f
commit 7f76188b81
Signed by: wanderer
GPG Key ID: 6391444A736EEE7E

View File

@ -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;
}