The regex in extractImageUrl was only handling one image per post (only the first image, even if an image grid is included).
This fix sets the matching on multiple images, and extracts each URLs, while keeping the backward compatibility for the "dataonly" mode that is expecting only one image in the 'image' variable.
It should probably be refined to mark when more than one image is loaded, and to prevent multiple call to extractImagesUrl if not necessary.
The regex in extractImageUrl was only handling one image per post (only the first image, even if an image grid is included).
This fix sets the matching on multiple images, and extracts each URLs, while keeping the backward compatibility for the "dataonly" mode that is expecting only one image in the 'image' variable.
It should probably be refined to mark when more than one image is loaded, and to prevent multiple call to extractImagesUrl if not necessary.