From 03c14f0ca7c06af6fca87b1e70e05d16d1d10b21 Mon Sep 17 00:00:00 2001 From: tobias Date: Sun, 19 May 2024 09:01:15 +0200 Subject: [PATCH] fix: Alt attr. string --- astro/src/utils/helpers.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/astro/src/utils/helpers.ts b/astro/src/utils/helpers.ts index a2430e6..0e6320a 100644 --- a/astro/src/utils/helpers.ts +++ b/astro/src/utils/helpers.ts @@ -34,6 +34,7 @@ export const getContentArray = (content: any) => { src: imgTag.match(/src="(.*?)"/)![1], width: +imgTag.match(/width="(.*?)"/)![1], height: +imgTag.match(/height="(.*?)"/)![1], + alt: imgTag.match(/alt="(.*?)"/)![1], }; htmlImageArray.push(remainingHtml, imgObject); lastIndex = imgEndIndex;