From 2f07c2af7901ac2a73dcfc87d3f360fa24e83d2f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BB=D0=B5=D0=BA=D1=81=D0=B0=D0=BD=D0=B4=D1=80=20?= =?UTF-8?q?=D0=A8=D0=BC=D0=B5=D0=BB=D0=B5=D0=B2?= <120136549+Felarn@users.noreply.github.com> Date: Thu, 4 May 2023 11:04:59 +0300 Subject: [PATCH] trim() input string of .arguments method --- lib/command.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/command.js b/lib/command.js index 0ff063685..590a271dd 100644 --- a/lib/command.js +++ b/lib/command.js @@ -330,7 +330,7 @@ class Command extends EventEmitter { */ arguments(names) { - names.split(/ +/).forEach((detail) => { + names.trim().split(/ +/).forEach((detail) => { this.argument(detail); }); return this;