Skip to content

Commit acd2ca7

Browse files
committed
match via Array.prototype.includes
1 parent fa228cf commit acd2ca7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/rescript_bsb.js

+1-1
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.includes("-h") || args.includes("-help") || args.includes("--help")) {
490490
delegate(["build", "-h"]);
491491
return;
492492
}

0 commit comments

Comments
 (0)