From efface9080860dea0c3a37ecfb41717a9655d0c6 Mon Sep 17 00:00:00 2001 From: yann300 Date: Wed, 3 May 2023 10:41:26 +0200 Subject: [PATCH] fix regex scientific notation --- libs/remix-lib/src/execution/txFormat.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/remix-lib/src/execution/txFormat.ts b/libs/remix-lib/src/execution/txFormat.ts index 9337d4ef6b..86718cf207 100644 --- a/libs/remix-lib/src/execution/txFormat.ts +++ b/libs/remix-lib/src/execution/txFormat.ts @@ -499,7 +499,7 @@ export const normalizeParam = (param) => { return param } -export const REGEX_SCIENTIFIC = /^(\d+\.?\d*)e\d*(\d+)$/ +export const REGEX_SCIENTIFIC = /^-?(\d+\.?\d*)e\d*(\d+)$/ export const REGEX_DECIMAL = /^\d*/