From 817d72a5b51c29e2f6dea83eacd19f5f926cc4e3 Mon Sep 17 00:00:00 2001 From: Rudy Huyn Date: Wed, 20 Mar 2019 17:04:37 -0700 Subject: [PATCH] add spaces to the regex --- src/CalcViewModel/Common/CopyPasteManager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/CalcViewModel/Common/CopyPasteManager.cpp b/src/CalcViewModel/Common/CopyPasteManager.cpp index 207c4ef4..39f871b9 100644 --- a/src/CalcViewModel/Common/CopyPasteManager.cpp +++ b/src/CalcViewModel/Common/CopyPasteManager.cpp @@ -44,8 +44,8 @@ static const array standardModePatterns = }; static const array scientificModePatterns = { - wregex(L"[-+]?" + c_wspcLParens + c_signedDecFloat + c_wspcRParens), - wregex(L"[-+]?" + c_wspcLParens + c_signedDecFloat + L"[e]([+]|[-])+\\d+" + c_wspcRParens) + wregex(c_wspc + L"[-+]?" + c_wspcLParens + c_signedDecFloat + c_wspcRParens), + wregex(c_wspc + L"[-+]?" + c_wspcLParens + c_signedDecFloat + L"[e]([+]|[-])+\\d+" + c_wspcRParens) }; static const array, 4> programmerModePatterns = { {