From d6ba8f19e29c383fac464eb7e1218ec68865116e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Go=C5=82e=CC=A8biowski-Owczarek?= Date: Sun, 7 Mar 2021 14:23:06 +0100 Subject: [PATCH] Build: Add a new htmllint error regex Some bad pages are being detected as Catalan randomly which makes the build fail. This is reproducible both locally & on Travis. This commit adds a new regex to account for this error. --- Gruntfile.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Gruntfile.js b/Gruntfile.js index 9a64cefbe3f..a6f6a679bd2 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -214,7 +214,8 @@ grunt.initConfig( { /Element “head” is missing a required instance of child element “title”/, /Element “object” is missing one or more of the following/, /The “codebase” attribute on the “object” element is obsolete/, - /Consider adding a “lang” attribute to the “html” start tag/ + /Consider adding a “lang” attribute to the “html” start tag/, + /This document appears to be written in .*. Consider adding “lang=".*"” (or variant) to the “html” start tag/ ] }, src: htmllintBad