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 9
9
<search >
10
10
<patterns >
11
11
<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 >
13
13
<pattern name =" wysiwyg" >/src=".*\/media\/(?:.renditions\/)*(.*?)"/</pattern >
14
14
<pattern name =" catalog_image" >/^\/?media\/(?:.renditions\/)?(.*)/</pattern >
15
15
<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()
77
77
2020
78
78
]
79
79
],
80
+ 'Relevant paths in content without quotes ' => [
81
+ 'content {{media url=testDirectory/path.jpg}} content ' ,
82
+ [
83
+ 2020
84
+ ]
85
+ ],
80
86
'Relevant wysiwyg paths in content ' => [
81
87
'content <img src="https://domain.com/media/testDirectory/path.jpg"}} content ' ,
82
88
[
You can’t perform that action at this time.
0 commit comments