Commit d4907089 authored by Eswara Sai's avatar Eswara Sai

Removed the regex check for hex encoded input

parent 8ef8a691
......@@ -51,7 +51,7 @@ module.exports = {
var dataHex = ''
if (params.indexOf('0x') === 0) {
dataHex = params.match(/"(.*?)"/)[1].replace('0x', '')
dataHex = params.replace('0x', '')
data = Buffer.from(dataHex, 'hex')
} else {
try {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment