When img element alt is missing, use last part of src

This commit is contained in:
the-djmaze 2022-10-05 22:54:53 +02:00
parent 0f834a714f
commit 897f22ee6e

View file

@ -316,6 +316,7 @@ export const
{
setAttribute('data-x-src', value);
result.hasExternals = true;
oElement.alt || (oElement.alt = value.replace(/^.+\/([^/]+)$/, '$1'));
}
else if ('data:image/' === value.slice(0, 11))
{