From 2a4f62566b034bfa70b11745bf881fd20b4dc8f4 Mon Sep 17 00:00:00 2001 From: yann300 Date: Mon, 1 Feb 2021 10:39:06 +0100 Subject: [PATCH] Update internalCallTree.ts --- libs/remix-debug/src/solidity-decoder/internalCallTree.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libs/remix-debug/src/solidity-decoder/internalCallTree.ts b/libs/remix-debug/src/solidity-decoder/internalCallTree.ts index eadf59723d..506b8f5be8 100644 --- a/libs/remix-debug/src/solidity-decoder/internalCallTree.ts +++ b/libs/remix-debug/src/solidity-decoder/internalCallTree.ts @@ -108,8 +108,7 @@ export class InternalCallTree { } parentScope (scopeId) { - const matched = scopeId.match(/(.\d|\d)$/) - return scopeId.replace(matched[1], '') + return scopeId.replace(/(.\d|\d)$/, '') } findScopeId (vmtraceIndex) {