Skip to content

Commit a8096d7

Browse files
committed
Revert "match via Array.prototype.includes"
This reverts commit 321013c.
1 parent 89e523b commit a8096d7

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

scripts/rescript_bsb.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -486,11 +486,7 @@ function build(args) {
486486
});
487487
return;
488488
}
489-
if (
490-
args.includes("-h") ||
491-
args.includes("-help") ||
492-
args.includes("--help")
493-
) {
489+
if (args.some(arg => /-h|-help|--help/.test(arg))) {
494490
delegate(["build", "-h"]);
495491
return;
496492
}

0 commit comments

Comments
 (0)