diff options
Diffstat (limited to 'vendor/twbs/bootstrap/build/vnu-jar.js')
-rw-r--r-- | vendor/twbs/bootstrap/build/vnu-jar.js | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/vendor/twbs/bootstrap/build/vnu-jar.js b/vendor/twbs/bootstrap/build/vnu-jar.js index 7d549cb01..f4a4141c1 100644 --- a/vendor/twbs/bootstrap/build/vnu-jar.js +++ b/vendor/twbs/bootstrap/build/vnu-jar.js @@ -2,9 +2,9 @@ /*! * Script to run vnu-jar if Java is available. - * Copyright 2017-2019 The Bootstrap Authors - * Copyright 2017-2019 Twitter, Inc. - * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) + * Copyright 2017-2020 The Bootstrap Authors + * Copyright 2017-2020 Twitter, Inc. + * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) */ 'use strict' @@ -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. @@ -36,9 +36,7 @@ childProcess.exec('java -version', (error, stdout, stderr) => { 'The “time” input type is not supported in all browsers.*', // IE11 doesn't recognise <main> / give the element an implicit "main" landmark. // Explicit role="main" is redundant for other modern browsers, but still valid. - 'The “main” role is unnecessary for element “main”.', - // Ignore the wrong lanuage code warnings for now; they happen randomly. - 'This document appears to be written in.*' + 'The “main” role is unnecessary for element “main”.' ].join('|') const args = [ @@ -46,6 +44,8 @@ childProcess.exec('java -version', (error, stdout, stderr) => { vnu, '--asciiquotes', '--skip-non-html', + // Ignore the language code warnings + '--no-langdetect', '--Werror', `--filterpattern "${ignores}"`, '_gh_pages/', |