Skip to content

Commit 1dd1ec4

Browse files
authored
Update vnu-jar.js (#2998)
Use `RegExp.test` since we care about a boolean
1 parent 76fd418 commit 1dd1ec4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scripts/vnu-jar.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ childProcess.exec('java -version', (error, stdout, stderr) => {
1111
return
1212
}
1313

14-
const is32bitJava = !stderr.match(/64-Bit/)
14+
const is32bitJava = !/64-Bit/.test(stderr)
1515

1616
// vnu-jar accepts multiple ignores joined with a `|`.
1717
// Also note that the ignores are regular expressions.

0 commit comments

Comments
 (0)