From f8a2889b2bcb2a6243409c3af7967a6b38d64564 Mon Sep 17 00:00:00 2001 From: jash Date: Sun, 23 Dec 2018 17:47:05 +0100 Subject: [PATCH] shortened the automatic name generated by name.js --- install/generator-cyphernode/generators/app/lib/name.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install/generator-cyphernode/generators/app/lib/name.js b/install/generator-cyphernode/generators/app/lib/name.js index 82602e3..7d7f187 100644 --- a/install/generator-cyphernode/generators/app/lib/name.js +++ b/install/generator-cyphernode/generators/app/lib/name.js @@ -1,4 +1,4 @@ -const MAXLENGTH = 32; +const MAXLENGTH = 30; const ADJECTIVES = [ /*a*/ ["Abiding", @@ -2363,7 +2363,7 @@ module.exports.generate = function() { ' '+ ANIMALS[index][Math.round(Math.random()*(ANIMALS[index].length-1))]+' 🚀' ).replace(/\s+/g, ' '); - } while( name.length > MAXLENGTH ); + } while( name.length >= MAXLENGTH ); return name }