Skip to content

Commit 2f07c2a

Browse files
Felarnabetomo
authored andcommitted
trim() input string of .arguments method
1 parent 60958df commit 2f07c2a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/command.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ class Command extends EventEmitter {
330330
*/
331331

332332
arguments(names) {
333-
names.split(/ +/).forEach((detail) => {
333+
names.trim().split(/ +/).forEach((detail) => {
334334
this.argument(detail);
335335
});
336336
return this;

0 commit comments

Comments
 (0)