Skip to content

Commit 8a8ac3c

Browse files
author
strausr
committed
chore: update alt text
1 parent 3422637 commit 8a8ac3c

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

next-cloudinary/.code-generation/config.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -642,17 +642,11 @@ function emitProps(lines, props, orderedKeys) {
642642
}
643643
}
644644

645-
function humanizePublicId(publicId) {
646-
var name = publicId.split('/').pop() || publicId;
647-
name = name.replace(/[-_]/g, ' ');
648-
return name.charAt(0).toUpperCase() + name.slice(1);
649-
}
650-
651645
function buildCldImageJSX(publicId, props) {
652646
var lines = ['<CldImage'];
653647
lines.push(' src="' + publicId + '"');
654648
emitProps(lines, props, IMAGE_ORDERED_PROPS);
655-
lines.push(' alt="' + humanizePublicId(publicId) + '"');
649+
lines.push(' alt="Image description"');
656650
lines.push('/>');
657651
return lines.join('\n');
658652
}

0 commit comments

Comments
 (0)