From 4a4f409be05d5b52867d4f19a94da913b5882e1b Mon Sep 17 00:00:00 2001 From: coldstar Date: Wed, 26 May 2021 07:23:47 -0700 Subject: [PATCH] 05/26/2021 07:23:47 AM MST --- routes/baseActionsRouter.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/routes/baseActionsRouter.js b/routes/baseActionsRouter.js index e8b98be..26a4c5a 100755 --- a/routes/baseActionsRouter.js +++ b/routes/baseActionsRouter.js @@ -195,8 +195,12 @@ router.post("/search", function(req, res) { return; } + query = query.replace(/,/g, ""); + console.log('query is' + query); + + if (query.length < 9) { if (typeof query == "number") { res.redirect("/block-height/" + query); @@ -216,7 +220,7 @@ router.post("/search", function(req, res) { console.log('Does not start with V'); } } - console.log(query.stringLength + ':Not less that 40 chars - going to check transaction and then block hash'); + console.log(query.length + ':Not less that 40 chars - going to check transaction and then block hash'); rpcApi.getRawTransaction(query).then(function(tx) { if (tx) {