1
0

fix: add support of lithuanian characters to "Practice.ValidWeb"

This commit is contained in:
Rokas Puzonas 2022-02-20 15:21:03 +02:00
parent e360ae8034
commit ee066855b6

View File

@ -46,10 +46,10 @@ namespace ValidWeb
protected void Button1_Click(object sender, EventArgs e)
{
string name = TextBox1.Text;
if (Regex.IsMatch(name, @"[^a-zA-Z]")) { return; }
if (Regex.IsMatch(name, @"[^a-zA-ZąčęėįšųūžĄČĘĖĮŠŲŪŽ]")) { return; }
string surname = TextBox2.Text;
if (Regex.IsMatch(surname, @"[^a-zA-Z]")) { return; }
if (Regex.IsMatch(surname, @"[^a-zA-ZąčęėįšųūžĄČĘĖĮŠŲŪŽ]")) { return; }
string school = TextBox3.Text;
string age = DropDownList1.Text;