fix lint bug
authorJustin Wind <justin.wind+git@gmail.com>
Fri, 8 Mar 2024 20:23:31 +0000 (12:23 -0800)
committerJustin Wind <justin.wind+git@gmail.com>
Fri, 8 Mar 2024 20:23:31 +0000 (12:23 -0800)
test/lint-html.js

index 50abb84784ff732d266577718906fa6227dc17ce..1f2b437c302effc58cc4de8a80d8254822bbe0d3 100644 (file)
@@ -22,7 +22,7 @@ function makeHtmlLint(logger, htmlValidate) {
     const report = await htmlValidate.validateString(html);
     report.results.forEach((r) => {
       if (Array.isArray(r)) {
-        result.forEach((m) => {
+        r.forEach((m) => {
           note(violations, m);
         });
       } else {