Browse Source

05/26/2021 07:20:43 AM MST

master
coldstar 3 years ago
parent
commit
a670e940a1
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      routes/baseActionsRouter.js

+ 2
- 2
routes/baseActionsRouter.js View File

@@ -197,7 +197,7 @@ router.post("/search", function(req, res) {


query = query.replace(/,/g, ""); query = query.replace(/,/g, "");


if (query.stringLength < 9) {
if (query.length < 9) {
if (typeof query == "number") { if (typeof query == "number") {
res.redirect("/block-height/" + query); res.redirect("/block-height/" + query);
console.log('This is a block'); console.log('This is a block');
@@ -207,7 +207,7 @@ router.post("/search", function(req, res) {
console.log('Bigger than 9 char'); console.log('Bigger than 9 char');
} }


if (query.stringLength < 40) {
if (query.length < 40) {
if (query.startsWith('V')) { if (query.startsWith('V')) {
res.redirect("/address/" + query); res.redirect("/address/" + query);
console.log('This is not number'); console.log('This is not number');


Loading…
Cancel
Save