From c766227b19d6645e6edf6138d0641f0d9821994d Mon Sep 17 00:00:00 2001 From: ear Date: Mon, 28 Nov 2022 16:08:24 +0500 Subject: [PATCH] Error of minus sign in convertation was fixed --- Infrastructure/UI/Converters/CommonOperation.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Infrastructure/UI/Converters/CommonOperation.cs b/Infrastructure/UI/Converters/CommonOperation.cs index fe7c8a0..ccad02e 100644 --- a/Infrastructure/UI/Converters/CommonOperation.cs +++ b/Infrastructure/UI/Converters/CommonOperation.cs @@ -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 = "";