]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
vnu.jar: Update ignores. (#28817)
authorXhmikosR <xhmikosr@gmail.com>
Fri, 24 May 2019 10:19:13 +0000 (13:19 +0300)
committerGitHub <noreply@github.com>
Fri, 24 May 2019 10:19:13 +0000 (13:19 +0300)
Pass the `--no-langdetect` flag instead of ignoring the warning manually.

build/vnu-jar.js

index 7d549cb01913b46dc33ddad007f8397b4e979237..8567ba89d4565c09acda3431af1d34d0694909f0 100644 (file)
@@ -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/',