Skip to content

Commit ef45e9b

Browse files
committed
CR
1 parent fe1df55 commit ef45e9b

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

src/steps/create-pictures.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ export function createOptimizedPicture(src, alt = '', title = undefined) {
5656
}
5757

5858
// Matches media bus URLs: /media_{sha1hash}.ext or /media_{sha1hash}/filename.ext
59-
// Always root-level; hex hash distinguishes from non-media paths like /media_kit/logo.png
6059
const isMediaBusFile = /^\/media_[a-f0-9]+(?:\/[^/]+)?\.[a-z0-9]+$/i.test(pathname);
6160

6261
// If not a media file, return a simple picture with just an img tag (no optimization)

test/steps/transform-images.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import assert from 'assert';
1414
import transformImages from '../../src/steps/transform-images.js';
1515

1616
describe('transform-images', () => {
17-
describe('product data shape', () => {
17+
describe('image URL transformation', () => {
1818
it('transforms top-level and variant images using filename field', async () => {
1919
const state = {
2020
content: {

0 commit comments

Comments
 (0)