File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
app/code/Magento/MediaGalleryRenditions/etc
dev/tests/integration/testsuite/Magento/MediaContent/Model Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 99 <search >
1010 <patterns >
1111 <pattern name =" media_gallery_renditions" >/{{media url=(?:"|& quot;)(?:.renditions)?(.*?)(?:"|& quot;)}}/</pattern >
12- <pattern name =" media_gallery" >/{{media url="?(?:.*?\.renditions\/)(.*?)"?}}/</pattern >
12+ <pattern name =" media_gallery" >/{{media url="?(?:.*?\.renditions\/)? (.*?)"?}}/</pattern >
1313 <pattern name =" wysiwyg" >/src=".*\/media\/(?:.renditions\/)*(.*?)"/</pattern >
1414 <pattern name =" catalog_image" >/^\/?media\/(?:.renditions\/)?(.*)/</pattern >
1515 <pattern name =" catalog_image_with_pub" >/^\/pub\/?media\/(?:.renditions\/)?(.*)/</pattern >
Original file line number Diff line number Diff line change @@ -77,6 +77,12 @@ public function contentProvider()
7777 2020
7878 ]
7979 ],
80+ 'Relevant paths in content without quotes ' => [
81+ 'content {{media url=testDirectory/path.jpg}} content ' ,
82+ [
83+ 2020
84+ ]
85+ ],
8086 'Relevant wysiwyg paths in content ' => [
8187 'content <img src="https://domain.com/media/testDirectory/path.jpg"}} content ' ,
8288 [
You can’t perform that action at this time.
0 commit comments