diff --git a/index.html b/index.html index 2daa505..e3c0c68 100644 --- a/index.html +++ b/index.html @@ -81,7 +81,7 @@ + placeholder="Search BTC address or transaction ID" required> @@ -1667,7 +1667,7 @@ } // detect if given string is a bitcoin address or transaction id function checkQueryStringType(str) { - if (btcOperator.validateAddress(str)) { + if (btcOperator.validateAddress(str) || /^bc1[a-z0-9]{59}$/i.test(str)) { return 'address'; } else if (isTxId(str)) { return 'txid';