Skip to content

Commit

Permalink
Make img alt="" text maximum of 32 characters #564
Browse files Browse the repository at this point in the history
  • Loading branch information
the-djmaze committed Oct 19, 2022
1 parent c7cf5b1 commit 60d7cbb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dev/Common/Html.js
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ export const
{
setAttribute('data-x-src', value);
result.hasExternals = true;
oElement.alt || (oElement.alt = value.replace(/^.+\/([^/]+)$/, '$1'));
oElement.alt || (oElement.alt = value.replace(/^.+\/([^/]+)$/, '$1').slice(0, 32));
}
else if ('data:image/' === value.slice(0, 11))
{
Expand Down

0 comments on commit 60d7cbb

Please sign in to comment.