Use regex.test() when we want to check for a Boolean. (#29969)
This commit is contained in:
parent
a7945d4501
commit
9c2b9ac74d
4 changed files with 6 additions and 8 deletions
|
|
@ -18,7 +18,7 @@ childProcess.exec('java -version', (error, stdout, stderr) => {
|
|||
return
|
||||
}
|
||||
|
||||
const is32bitJava = !stderr.match(/64-Bit/)
|
||||
const is32bitJava = !/64-Bit/.test(stderr)
|
||||
|
||||
// vnu-jar accepts multiple ignores joined with a `|`.
|
||||
// Also note that the ignores are regular expressions.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue