Skip to content

Commit fce944a

Browse files
committed
Javascript parseInt also returns true if only the first character of a sequence is a number. So we need to apply Number.isNaN
1 parent 2d64d5b commit fce944a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/include/cli.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ class cli {
241241

242242
if (this.data.project) return this.data.project;
243243

244-
let projects = _.uniq(_.filter(this.args, arg => !parseInt(arg)));
244+
let projects = _.uniq(_.filter(this.args, arg => !Number.isNaN(new Number(arg))));
245245
this.args = _.difference(this.args, projects);
246246

247247
return this.data.project = projects;

0 commit comments

Comments
 (0)