Skip to content

Commit 0c3862a

Browse files
committed
Merge branch 'ACP2E-1886' of https://github.com/magento-l3/magento2ce into PR-L3-2023-05-11
2 parents 11197a9 + a980dcb commit 0c3862a

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

app/code/Magento/MediaGalleryRenditions/etc/media_content.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<search>
1010
<patterns>
1111
<pattern name="media_gallery_renditions">/{{media url=(?:"|&amp;quot;)(?:.renditions)?(.*?)(?:"|&amp;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>

dev/tests/integration/testsuite/Magento/MediaContent/Model/ExtractAssetsFromContentTest.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff 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
[

0 commit comments

Comments
 (0)