mirror of
https://github.com/Microsoft/calculator.git
synced 2025-07-16 02:02:51 -07:00
Allow negative numbers without digits before the decimal point (#743)
This commit is contained in:
parent
bc298efc97
commit
8db4c2b25a
2 changed files with 11 additions and 6 deletions
|
@ -29,7 +29,7 @@ static const wstring c_wspc = L"[\\s\\x85]*";
|
|||
static const wstring c_wspcLParens = c_wspc + L"[(]*" + c_wspc;
|
||||
static const wstring c_wspcLParenSigned = c_wspc + L"([-+]?[(])*" + c_wspc;
|
||||
static const wstring c_wspcRParens = c_wspc + L"[)]*" + c_wspc;
|
||||
static const wstring c_signedDecFloat = L"(?:[-+]?\\d+(\\.\\d*)?|\\.\\d+)";
|
||||
static const wstring c_signedDecFloat = L"(?:[-+]?(?:\\d+(\\.\\d*)?|\\.\\d+))";
|
||||
static const wstring c_optionalENotation = L"(?:e[+-]?\\d+)?";
|
||||
|
||||
// Programmer Mode Integer patterns
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue