Skip to content

Commit 321013c

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

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

scripts/rescript_bsb.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,11 @@ function build(args) {
486486
});
487487
return;
488488
}
489-
if (args.some(arg => /-h|-help|--help/.test(arg))) {
489+
if (
490+
args.includes("-h") ||
491+
args.includes("-help") ||
492+
args.includes("--help")
493+
) {
490494
delegate(["build", "-h"]);
491495
return;
492496
}

0 commit comments

Comments
 (0)