diff options
author | XhmikosR <xhmikosr@gmail.com> | 2020-01-07 23:07:51 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-07 23:07:51 +0300 |
commit | 9c2b9ac74d4abb5ec8b7864054315de3409d5f3a (patch) | |
tree | bdd48def07c5ef9c88c01c15554e3acada526b59 /build | |
parent | a7945d4501377cd42afd49c0e885b0e1923b36cc (diff) |
Use regex.test() when we want to check for a Boolean. (#29969)
Diffstat (limited to 'build')
-rw-r--r-- | build/vnu-jar.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/build/vnu-jar.js b/build/vnu-jar.js index 53fc58636f..4018873f8d 100644 --- a/build/vnu-jar.js +++ b/build/vnu-jar.js @@ -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. |