diff --git a/lib/srcset.php b/lib/srcset.php index 6ed7f58..5f9018d 100644 --- a/lib/srcset.php +++ b/lib/srcset.php @@ -29,7 +29,7 @@ public static function replaceSrcSets(rex_extension_point $ep) } // get all PICTURE elements with srcset attribute - preg_match_all('/]+)?>(.*)<\/picture>/is', $content, $matches, PREG_SET_ORDER); + preg_match_all('/]+)?>(.*?)<\/picture>/is', $content, $matches, PREG_SET_ORDER); if(!empty($matches[0])) { $elements = array_merge($elements, $matches);