Correzione controllo numero di telefono
This commit is contained in:
parent
e7de3c6013
commit
1eb392051d
@ -51,9 +51,9 @@ class Program {
|
||||
string? message;
|
||||
error = true;
|
||||
Console.WriteLine("Inserisci il numero di telefono della voce che andrà nella rubrica telefonica");
|
||||
numeroditelefono = Console.ReadLine().ToLower();
|
||||
numeroditelefono = Console.ReadLine();
|
||||
|
||||
message = Controllo(nome, true, contatore, rubrica);
|
||||
message = Controllo(numeroditelefono, false, contatore, rubrica);
|
||||
|
||||
if (message != null) {
|
||||
Console.WriteLine(message);
|
||||
@ -151,7 +151,7 @@ class Program {
|
||||
check = Regex.IsMatch(p_stringa, NOME);
|
||||
}
|
||||
else {
|
||||
check = Regex.IsMatch(p_stringa, TELEFONO);
|
||||
check = !Regex.IsMatch(p_stringa, TELEFONO);
|
||||
}
|
||||
return check;
|
||||
}
|
||||
|
||||
Binary file not shown.
Binary file not shown.
@ -13,7 +13,7 @@ using System.Reflection;
|
||||
[assembly: System.Reflection.AssemblyCompanyAttribute("Rubrica_Miglioria")]
|
||||
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
|
||||
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
|
||||
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+393f7b13459b56950f9df3e6481fdb54ce89ad4e")]
|
||||
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+e7de3c601399c0a4ff32ad7ca693ebf58115fc89")]
|
||||
[assembly: System.Reflection.AssemblyProductAttribute("Rubrica_Miglioria")]
|
||||
[assembly: System.Reflection.AssemblyTitleAttribute("Rubrica_Miglioria")]
|
||||
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
|
||||
|
||||
@ -1 +1 @@
|
||||
587c6eae2a265b095385ca01980eeea7bcd8ffc6b1f3d2a1109821dfbd9c54ac
|
||||
74d82e905a60e0dca9021051aebc282c6ac8672632bad48a18bb165ce203b440
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user