Skip to content

Commit 1a62cba

Browse files
committed
match via includes
1 parent a8096d7 commit 1a62cba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/rescript_bsb.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,7 @@ function build(args) {
486486
});
487487
return;
488488
}
489-
if (args.some(arg => /-h|-help|--help/.test(arg))) {
489+
if (args.some(arg => ["help", "-h", "-help", "--help"].includes(arg))) {
490490
delegate(["build", "-h"]);
491491
return;
492492
}

0 commit comments

Comments
 (0)