mirror of
https://github.com/Microsoft/calculator.git
synced 2025-08-22 06:13:14 -07:00
support texts with a minus sign before a parenthesis
This commit is contained in:
parent
21e15c426e
commit
10cecaf1a6
1 changed files with 2 additions and 2 deletions
|
@ -44,8 +44,8 @@ static const array<wregex, 1> standardModePatterns =
|
||||||
};
|
};
|
||||||
static const array<wregex, 2> scientificModePatterns =
|
static const array<wregex, 2> scientificModePatterns =
|
||||||
{
|
{
|
||||||
wregex(c_wspcLParens + c_signedDecFloat + c_wspcRParens),
|
wregex(L"[-+]?" + c_wspcLParens + c_signedDecFloat + c_wspcRParens),
|
||||||
wregex(c_wspcLParens + c_signedDecFloat + L"[e]([+]|[-])+\\d+" + c_wspcRParens)
|
wregex(L"[-+]?" + c_wspcLParens + c_signedDecFloat + L"[e]([+]|[-])+\\d+" + c_wspcRParens)
|
||||||
};
|
};
|
||||||
static const array<array<wregex, 5>, 4> programmerModePatterns =
|
static const array<array<wregex, 5>, 4> programmerModePatterns =
|
||||||
{ {
|
{ {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue