generated from autonomic-cooperative/astro-payload-template
fix: Alt attr. string
This commit is contained in:
parent
421394a794
commit
03c14f0ca7
@ -34,6 +34,7 @@ export const getContentArray = (content: any) => {
|
|||||||
src: imgTag.match(/src="(.*?)"/)![1],
|
src: imgTag.match(/src="(.*?)"/)![1],
|
||||||
width: +imgTag.match(/width="(.*?)"/)![1],
|
width: +imgTag.match(/width="(.*?)"/)![1],
|
||||||
height: +imgTag.match(/height="(.*?)"/)![1],
|
height: +imgTag.match(/height="(.*?)"/)![1],
|
||||||
|
alt: imgTag.match(/alt="(.*?)"/)![1],
|
||||||
};
|
};
|
||||||
htmlImageArray.push(remainingHtml, imgObject);
|
htmlImageArray.push(remainingHtml, imgObject);
|
||||||
lastIndex = imgEndIndex;
|
lastIndex = imgEndIndex;
|
||||||
|
Loading…
Reference in New Issue
Block a user