1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-28 15:50:01 +02:00

Use regex.test() when we want to check for a Boolean. (#29969)

This commit is contained in:
XhmikosR
2020-01-07 22:07:51 +02:00
parent f737c73a27
commit 6c46493803
2 changed files with 4 additions and 4 deletions

View File

@@ -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.