mirror of
https://github.com/the-djmaze/snappymail.git
synced 2024-09-20 15:45:55 +08:00
Make img alt="" text maximum of 32 characters #564
This commit is contained in:
parent
c7cf5b1c2c
commit
60d7cbb318
|
@ -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))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue