pull/1344/head
yann300 3 years ago committed by joseph izang
parent 6d5cfc509d
commit af4097caa9
  1. 4
      libs/remix-ui/debugger-ui/src/lib/vm-debugger/dropdown-panel.tsx

@ -38,8 +38,8 @@ export const DropdownPanel = (props: DropdownPanelProps) => {
if (hexHighlight && typeof (data.self) === 'string') {
const isHex = data.self.startsWith('0x') || hexHighlight
if (isHex) {
let regex = /^(0+)(.*)/g
let split = regex.exec(data.self.replace('0x', ''))
const regex = /^(0+)(.*)/g
const split = regex.exec(data.self.replace('0x', ''))
if (split && split[1]) {
value = (<span><span className="m-0 label_value">0x</span><span className="m-0 label_value">{split[1]}</span>{ split[2] && <span className="m-0 label_value font-weight-bold text-dark">{split[2]}</span> }</span>)
} else value = (<span><span className="m-0 label_value">0x</span><span className="m-0 label_value font-weight-bold text-dark">{data.self.replace('0x', '')}</span></span>)

Loading…
Cancel
Save