Commit 4c7b746c authored by Ludwig Ruderstaller's avatar Ludwig Ruderstaller

Merge branch 'hotfix/match-url-with-additional-parameters' into 'master'

fix regular expression

See merge request !7
parents a835c63f f9701cfc
......@@ -56,7 +56,7 @@ class ResizeUploadedImagesSubscriber implements EventSubscriberInterface
$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