Skip to content

Commit b59a1ce

Browse files
committed
Build: Fix htmllint lang exclusion patterns
1 parent 63a10e0 commit b59a1ce

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

Gruntfile.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -182,8 +182,10 @@ grunt.initConfig( {
182182
good: {
183183
options: {
184184
ignore: [
185-
/The text content of element script was not in the required format: Expected space, tab, newline, or slash but found . instead/
186-
] },
185+
/The text content of element script was not in the required format: Expected space, tab, newline, or slash but found . instead/,
186+
/This document appears to be written in .*. Consider using lang=".*" \(or variant\) instead/
187+
]
188+
},
187189
src: [
188190
"{demos,tests}/**/*.html",
189191
...htmllintBad.map( pattern => `!${ pattern }` )
@@ -197,7 +199,7 @@ grunt.initConfig( {
197199
/Element object is missing one or more of the following/,
198200
/The codebase attribute on the object element is obsolete/,
199201
/Consider adding a lang attribute to the html start tag/,
200-
/This document appears to be written in .*. Consider adding lang=".*" \(or variant\) to the html start tag/
202+
/This document appears to be written in .*. Consider using lang=".*" \(or variant\) instead/
201203
]
202204
},
203205
src: htmllintBad

0 commit comments

Comments
 (0)