Commit f9701cfc authored by Niklas de Vries's avatar Niklas de Vries

fix regular expression

parent 2aa82d8d
......@@ -56,7 +56,7 @@ class ResizeUploadedImagesSubscriber implements EventSubscriberInterface
return;
}
$pattern = '/<img\s[^>]*?src\s*=\s*[\'\"]([^\'\"]*?)\?mediaId=([0-9]*).*[\'\"][^>]*?>/';
$pattern = '/<img\s[^>]*?src\s*=\s*[\'\"]([^\'\"]*?)\?mediaId=([0-9]*)[^\'\"]*[\'\"][^>]*?>/';
preg_match_all($pattern, $content, $matches);
foreach ($matches[0] as $index => $imgTag) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment