Error of minus sign in convertation was fixed

This commit is contained in:
ear
2022-11-28 16:08:24 +05:00
parent e820f3522d
commit c766227b19

View File

@@ -33,7 +33,7 @@ namespace StructureHelper.Infrastructure.UI.Converters
public static IStringDoublePair DivideIntoStringDoublePair(string s)
{
s = s.Replace(" ", "");
string digitPattern = @"\d+(\.?|\,?)\d*";
string digitPattern = @"^[-]?[+]?\d+(\.?|\,?)\d*";
string textPattern = @"[0-9]|\.|\,";
string caracterPattern = "[a-z]+$";
string target = "";