mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-29 12:09:20 +03:00
Small fixes
This commit is contained in:
parent
c5bffef9cd
commit
f92120a5a7
7 changed files with 46 additions and 46 deletions
|
|
@ -655,18 +655,18 @@
|
|||
sSignature = sSignature.substr(6);
|
||||
}
|
||||
|
||||
sSignature = sSignature.replace(/[\r]/, '');
|
||||
sSignature = sSignature.replace(/[\r]/g, '');
|
||||
|
||||
sFrom = Utils.pString(sFrom);
|
||||
if ('' !== sFrom)
|
||||
{
|
||||
sSignature = sSignature.replace(/{{FROM}}/, sFrom);
|
||||
sSignature = sSignature.replace(/{{FROM}}/g, sFrom);
|
||||
}
|
||||
|
||||
sSignature = sSignature.replace(/[\s]{1,2}{{FROM}}/, '{{FROM}}');
|
||||
sSignature = sSignature.replace(/[\s]{1,2}{{FROM}}/g, '{{FROM}}');
|
||||
|
||||
sSignature = sSignature.replace(/{{FROM}}/, '');
|
||||
sSignature = sSignature.replace(/{{DATE}}/, moment().format('llll'));
|
||||
sSignature = sSignature.replace(/{{FROM}}/g, '');
|
||||
sSignature = sSignature.replace(/{{DATE}}/g, moment().format('llll'));
|
||||
|
||||
if (sData && Enums.ComposeType.Empty === sComposeType &&
|
||||
-1 < sSignature.indexOf('{{DATA}}'))
|
||||
|
|
@ -675,7 +675,7 @@
|
|||
sSignature = sSignature.replace('{{DATA}}', sData);
|
||||
}
|
||||
|
||||
sSignature = sSignature.replace(/{{DATA}}/, '');
|
||||
sSignature = sSignature.replace(/{{DATA}}/g, '');
|
||||
|
||||
if (!bHtml)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue