maverick-wave-astro 1.35.0 → 1.36.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -45,7 +45,8 @@ export const readPage = (html) => {
45
45
  description: decode(description),
46
46
  noIndex: robots.includes('noindex'),
47
47
  headings: html.match(/<h1[\s>]/g)?.length ?? 0,
48
- imagesWithoutAlt: (html.match(/<img\b[^>]*>/g) ?? []).filter(tag => !/\salt=/.test(tag)).length,
48
+ // Astro writes alt="" as a bare alt, so the attribute may end the tag.
49
+ imagesWithoutAlt: (html.match(/<img\b[^>]*>/g) ?? []).filter(tag => !/\salt(?=[\s=>/])/.test(tag)).length,
49
50
  questions: questions(html),
50
51
  };
51
52
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "maverick-wave-astro",
3
- "version": "1.35.0",
3
+ "version": "1.36.0",
4
4
  "description": "Shared frame for static Astro homepages built with MaverickWave: layout, SEO, design variants, schedule, building blocks.",
5
5
  "type": "module",
6
6
  "license": "MIT",