Skip to content

Commit 1a04584

Browse files
committed
Update internalCallTree.ts
1 parent 4e4b0de commit 1a04584

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

libs/remix-debug/src/solidity-decoder/internalCallTree.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,7 @@ export class InternalCallTree {
108108
}
109109

110110
parentScope (scopeId) {
111-
const matched = scopeId.match(/(.\d|\d)$/)
112-
return scopeId.replace(matched[1], '')
111+
return scopeId.replace(/(.\d|\d)$/, '')
113112
}
114113

115114
findScopeId (vmtraceIndex) {

0 commit comments

Comments
 (0)