Skip to content

Commit

Permalink
Merge pull request #25 from FriendsOfREDAXO/Hirbod-patch-1
Browse files Browse the repository at this point in the history
fix regular expression @hirbod  🙏
  • Loading branch information
skerbis authored Mar 11, 2021
2 parents dde9220 + f3b308a commit 4456b77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/srcset.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public static function replaceSrcSets(rex_extension_point $ep)
}

// get all PICTURE elements with srcset attribute
preg_match_all('/<picture([^>]+)?>(.*)<\/picture>/is', $content, $matches, PREG_SET_ORDER);
preg_match_all('/<picture([^>]+)?>(.*?)<\/picture>/is', $content, $matches, PREG_SET_ORDER);
if(!empty($matches[0]))
{
$elements = array_merge($elements, $matches);
Expand Down

0 comments on commit 4456b77

Please sign in to comment.