Skip to content

Commit 66e7575

Browse files
committed
Fix image check if base64
1 parent 5aa33c2 commit 66e7575

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/functions/getImages.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ const getImages = (result: any): string[] => {
88
.filter((image: any) => {
99
return Object.prototype.hasOwnProperty.call(image, 'attribs') && Object.prototype.hasOwnProperty.call(image.attribs, 'src');
1010
})
11+
.filter((image: any) => {
12+
return !image.attribs.src.startsWith('data:image')
13+
})
1114
.map((image: any) => {
1215
if (image.attribs.src.startsWith('./')) {
1316
if (result.url.endsWith('/')) {

0 commit comments

Comments
 (0)