From 16909c7f1a3d2e03c612b03cb527ea7a3ae42323 Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Mon, 23 Apr 2018 12:14:48 -0400 Subject: [PATCH] if version name doesn't have /, then just use the full name --- lib/core/engine.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/core/engine.js b/lib/core/engine.js index 53d763b09..51698b6d8 100644 --- a/lib/core/engine.js +++ b/lib/core/engine.js @@ -222,6 +222,9 @@ class Engine { if (err) { return cb({name: "Ethereum node (version unknown)", status: 'on'}); } + if (version.indexOf("/") < 0) { + return cb({name: version, status: 'on'}); + } let nodeName = version.split("/")[0]; let versionNumber = version.split("/")[1].split("-")[0]; let name = nodeName + " " + versionNumber + " (Ethereum)";