From 1029849a5314cac7371de9d787199749423bb458 Mon Sep 17 00:00:00 2001 From: Michał Gołębiowski-Owczarek Date: Tue, 9 Mar 2021 00:10:38 +0100 Subject: 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. Closes gh-1949 --- Gruntfile.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Gruntfile.js b/Gruntfile.js index 9e18fd3d8..f0aedf96a 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 -- cgit v1.2.3