fix: Alt attr. string

This commit is contained in:
tobias 2024-05-19 09:01:15 +02:00
parent 421394a794
commit 03c14f0ca7
1 changed files with 1 additions and 0 deletions

View File

@ -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;