mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +03:00
Small fixes
This commit is contained in:
parent
c5bffef9cd
commit
f92120a5a7
7 changed files with 46 additions and 46 deletions
|
|
@ -512,7 +512,7 @@
|
||||||
Utils.replySubjectAdd = function (sPrefix, sSubject)
|
Utils.replySubjectAdd = function (sPrefix, sSubject)
|
||||||
{
|
{
|
||||||
sPrefix = Utils.trim(sPrefix.toUpperCase());
|
sPrefix = Utils.trim(sPrefix.toUpperCase());
|
||||||
sSubject = Utils.trim(sSubject.replace(/[\s]+/, ' '));
|
sSubject = Utils.trim(sSubject.replace(/[\s]+/g, ' '));
|
||||||
|
|
||||||
var
|
var
|
||||||
iIndex = 0,
|
iIndex = 0,
|
||||||
|
|
@ -591,7 +591,7 @@
|
||||||
oMatch = null
|
oMatch = null
|
||||||
;
|
;
|
||||||
|
|
||||||
sSubject = Utils.trim(sSubject.replace(/[\s]+/, ' '));
|
sSubject = Utils.trim(sSubject.replace(/[\s]+/g, ' '));
|
||||||
|
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
|
|
@ -610,7 +610,7 @@
|
||||||
}
|
}
|
||||||
while (oMatch || 0 < iLimit);
|
while (oMatch || 0 < iLimit);
|
||||||
|
|
||||||
return sSubject.replace(/[\s]+/, ' ');
|
return sSubject.replace(/[\s]+/g, ' ');
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -659,7 +659,7 @@
|
||||||
oMatch = null
|
oMatch = null
|
||||||
;
|
;
|
||||||
|
|
||||||
sSubject = Utils.trim(sSubject.replace(/[\s]+/, ' '));
|
sSubject = Utils.trim(sSubject.replace(/[\s]+/g, ' '));
|
||||||
|
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
|
|
@ -681,7 +681,7 @@
|
||||||
}
|
}
|
||||||
while (oMatch);
|
while (oMatch);
|
||||||
|
|
||||||
sSubject = sSubject.replace(/[\s]+/, ' ');
|
sSubject = sSubject.replace(/[\s]+/g, ' ');
|
||||||
return sSubject;
|
return sSubject;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -1339,7 +1339,7 @@
|
||||||
Utils.convertLangName = function (sLanguage, bEng)
|
Utils.convertLangName = function (sLanguage, bEng)
|
||||||
{
|
{
|
||||||
return Utils.i18n('LANGS_NAMES' + (true === bEng ? '_EN' : '') + '/LANG_' +
|
return Utils.i18n('LANGS_NAMES' + (true === bEng ? '_EN' : '') + '/LANG_' +
|
||||||
sLanguage.toUpperCase().replace(/[^a-zA-Z0-9]+/, '_'), null, sLanguage);
|
sLanguage.toUpperCase().replace(/[^a-zA-Z0-9]+/g, '_'), null, sLanguage);
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -1522,7 +1522,7 @@
|
||||||
sText = splitPlainText($.trim(sText));
|
sText = splitPlainText($.trim(sText));
|
||||||
sText = '> ' + sText.replace(/\n/gm, '\n> ');
|
sText = '> ' + sText.replace(/\n/gm, '\n> ');
|
||||||
return sText.replace(/(^|\n)([> ]+)/gm, function () {
|
return sText.replace(/(^|\n)([> ]+)/gm, function () {
|
||||||
return (arguments && 2 < arguments.length) ? arguments[1] + $.trim(arguments[2].replace(/[\s]/, '')) + ' ' : '';
|
return (arguments && 2 < arguments.length) ? arguments[1] + $.trim(arguments[2].replace(/[\s]/g, '')) + ' ' : '';
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -355,8 +355,8 @@
|
||||||
$sComment = Utils.trim($sComment).replace(/^[(]+/, '').replace(/[)]+$/, '');
|
$sComment = Utils.trim($sComment).replace(/^[(]+/, '').replace(/[)]+$/, '');
|
||||||
|
|
||||||
// Remove backslash
|
// Remove backslash
|
||||||
$sName = $sName.replace(/\\\\(.)/, '$1');
|
$sName = $sName.replace(/\\\\(.)/g, '$1');
|
||||||
$sComment = $sComment.replace(/\\\\(.)/, '$1');
|
$sComment = $sComment.replace(/\\\\(.)/g, '$1');
|
||||||
|
|
||||||
this.name = $sName;
|
this.name = $sName;
|
||||||
this.email = $sEmail;
|
this.email = $sEmail;
|
||||||
|
|
|
||||||
|
|
@ -655,18 +655,18 @@
|
||||||
sSignature = sSignature.substr(6);
|
sSignature = sSignature.substr(6);
|
||||||
}
|
}
|
||||||
|
|
||||||
sSignature = sSignature.replace(/[\r]/, '');
|
sSignature = sSignature.replace(/[\r]/g, '');
|
||||||
|
|
||||||
sFrom = Utils.pString(sFrom);
|
sFrom = Utils.pString(sFrom);
|
||||||
if ('' !== 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(/{{FROM}}/g, '');
|
||||||
sSignature = sSignature.replace(/{{DATE}}/, moment().format('llll'));
|
sSignature = sSignature.replace(/{{DATE}}/g, moment().format('llll'));
|
||||||
|
|
||||||
if (sData && Enums.ComposeType.Empty === sComposeType &&
|
if (sData && Enums.ComposeType.Empty === sComposeType &&
|
||||||
-1 < sSignature.indexOf('{{DATA}}'))
|
-1 < sSignature.indexOf('{{DATA}}'))
|
||||||
|
|
@ -675,7 +675,7 @@
|
||||||
sSignature = sSignature.replace('{{DATA}}', sData);
|
sSignature = sSignature.replace('{{DATA}}', sData);
|
||||||
}
|
}
|
||||||
|
|
||||||
sSignature = sSignature.replace(/{{DATA}}/, '');
|
sSignature = sSignature.replace(/{{DATA}}/g, '');
|
||||||
|
|
||||||
if (!bHtml)
|
if (!bHtml)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -2562,7 +2562,7 @@
|
||||||
Utils.replySubjectAdd = function (sPrefix, sSubject)
|
Utils.replySubjectAdd = function (sPrefix, sSubject)
|
||||||
{
|
{
|
||||||
sPrefix = Utils.trim(sPrefix.toUpperCase());
|
sPrefix = Utils.trim(sPrefix.toUpperCase());
|
||||||
sSubject = Utils.trim(sSubject.replace(/[\s]+/, ' '));
|
sSubject = Utils.trim(sSubject.replace(/[\s]+/g, ' '));
|
||||||
|
|
||||||
var
|
var
|
||||||
iIndex = 0,
|
iIndex = 0,
|
||||||
|
|
@ -2641,7 +2641,7 @@
|
||||||
oMatch = null
|
oMatch = null
|
||||||
;
|
;
|
||||||
|
|
||||||
sSubject = Utils.trim(sSubject.replace(/[\s]+/, ' '));
|
sSubject = Utils.trim(sSubject.replace(/[\s]+/g, ' '));
|
||||||
|
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
|
|
@ -2660,7 +2660,7 @@
|
||||||
}
|
}
|
||||||
while (oMatch || 0 < iLimit);
|
while (oMatch || 0 < iLimit);
|
||||||
|
|
||||||
return sSubject.replace(/[\s]+/, ' ');
|
return sSubject.replace(/[\s]+/g, ' ');
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -2709,7 +2709,7 @@
|
||||||
oMatch = null
|
oMatch = null
|
||||||
;
|
;
|
||||||
|
|
||||||
sSubject = Utils.trim(sSubject.replace(/[\s]+/, ' '));
|
sSubject = Utils.trim(sSubject.replace(/[\s]+/g, ' '));
|
||||||
|
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
|
|
@ -2731,7 +2731,7 @@
|
||||||
}
|
}
|
||||||
while (oMatch);
|
while (oMatch);
|
||||||
|
|
||||||
sSubject = sSubject.replace(/[\s]+/, ' ');
|
sSubject = sSubject.replace(/[\s]+/g, ' ');
|
||||||
return sSubject;
|
return sSubject;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -3389,7 +3389,7 @@
|
||||||
Utils.convertLangName = function (sLanguage, bEng)
|
Utils.convertLangName = function (sLanguage, bEng)
|
||||||
{
|
{
|
||||||
return Utils.i18n('LANGS_NAMES' + (true === bEng ? '_EN' : '') + '/LANG_' +
|
return Utils.i18n('LANGS_NAMES' + (true === bEng ? '_EN' : '') + '/LANG_' +
|
||||||
sLanguage.toUpperCase().replace(/[^a-zA-Z0-9]+/, '_'), null, sLanguage);
|
sLanguage.toUpperCase().replace(/[^a-zA-Z0-9]+/g, '_'), null, sLanguage);
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -3572,7 +3572,7 @@
|
||||||
sText = splitPlainText($.trim(sText));
|
sText = splitPlainText($.trim(sText));
|
||||||
sText = '> ' + sText.replace(/\n/gm, '\n> ');
|
sText = '> ' + sText.replace(/\n/gm, '\n> ');
|
||||||
return sText.replace(/(^|\n)([> ]+)/gm, function () {
|
return sText.replace(/(^|\n)([> ]+)/gm, function () {
|
||||||
return (arguments && 2 < arguments.length) ? arguments[1] + $.trim(arguments[2].replace(/[\s]/, '')) + ' ' : '';
|
return (arguments && 2 < arguments.length) ? arguments[1] + $.trim(arguments[2].replace(/[\s]/g, '')) + ' ' : '';
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
@ -6413,8 +6413,8 @@ module.exports = window;
|
||||||
$sComment = Utils.trim($sComment).replace(/^[(]+/, '').replace(/[)]+$/, '');
|
$sComment = Utils.trim($sComment).replace(/^[(]+/, '').replace(/[)]+$/, '');
|
||||||
|
|
||||||
// Remove backslash
|
// Remove backslash
|
||||||
$sName = $sName.replace(/\\\\(.)/, '$1');
|
$sName = $sName.replace(/\\\\(.)/g, '$1');
|
||||||
$sComment = $sComment.replace(/\\\\(.)/, '$1');
|
$sComment = $sComment.replace(/\\\\(.)/g, '$1');
|
||||||
|
|
||||||
this.name = $sName;
|
this.name = $sName;
|
||||||
this.email = $sEmail;
|
this.email = $sEmail;
|
||||||
|
|
|
||||||
6
rainloop/v/0.0.0/static/js/admin.min.js
vendored
6
rainloop/v/0.0.0/static/js/admin.min.js
vendored
File diff suppressed because one or more lines are too long
|
|
@ -4991,7 +4991,7 @@
|
||||||
Utils.replySubjectAdd = function (sPrefix, sSubject)
|
Utils.replySubjectAdd = function (sPrefix, sSubject)
|
||||||
{
|
{
|
||||||
sPrefix = Utils.trim(sPrefix.toUpperCase());
|
sPrefix = Utils.trim(sPrefix.toUpperCase());
|
||||||
sSubject = Utils.trim(sSubject.replace(/[\s]+/, ' '));
|
sSubject = Utils.trim(sSubject.replace(/[\s]+/g, ' '));
|
||||||
|
|
||||||
var
|
var
|
||||||
iIndex = 0,
|
iIndex = 0,
|
||||||
|
|
@ -5070,7 +5070,7 @@
|
||||||
oMatch = null
|
oMatch = null
|
||||||
;
|
;
|
||||||
|
|
||||||
sSubject = Utils.trim(sSubject.replace(/[\s]+/, ' '));
|
sSubject = Utils.trim(sSubject.replace(/[\s]+/g, ' '));
|
||||||
|
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
|
|
@ -5089,7 +5089,7 @@
|
||||||
}
|
}
|
||||||
while (oMatch || 0 < iLimit);
|
while (oMatch || 0 < iLimit);
|
||||||
|
|
||||||
return sSubject.replace(/[\s]+/, ' ');
|
return sSubject.replace(/[\s]+/g, ' ');
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -5138,7 +5138,7 @@
|
||||||
oMatch = null
|
oMatch = null
|
||||||
;
|
;
|
||||||
|
|
||||||
sSubject = Utils.trim(sSubject.replace(/[\s]+/, ' '));
|
sSubject = Utils.trim(sSubject.replace(/[\s]+/g, ' '));
|
||||||
|
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
|
|
@ -5160,7 +5160,7 @@
|
||||||
}
|
}
|
||||||
while (oMatch);
|
while (oMatch);
|
||||||
|
|
||||||
sSubject = sSubject.replace(/[\s]+/, ' ');
|
sSubject = sSubject.replace(/[\s]+/g, ' ');
|
||||||
return sSubject;
|
return sSubject;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -5818,7 +5818,7 @@
|
||||||
Utils.convertLangName = function (sLanguage, bEng)
|
Utils.convertLangName = function (sLanguage, bEng)
|
||||||
{
|
{
|
||||||
return Utils.i18n('LANGS_NAMES' + (true === bEng ? '_EN' : '') + '/LANG_' +
|
return Utils.i18n('LANGS_NAMES' + (true === bEng ? '_EN' : '') + '/LANG_' +
|
||||||
sLanguage.toUpperCase().replace(/[^a-zA-Z0-9]+/, '_'), null, sLanguage);
|
sLanguage.toUpperCase().replace(/[^a-zA-Z0-9]+/g, '_'), null, sLanguage);
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -6001,7 +6001,7 @@
|
||||||
sText = splitPlainText($.trim(sText));
|
sText = splitPlainText($.trim(sText));
|
||||||
sText = '> ' + sText.replace(/\n/gm, '\n> ');
|
sText = '> ' + sText.replace(/\n/gm, '\n> ');
|
||||||
return sText.replace(/(^|\n)([> ]+)/gm, function () {
|
return sText.replace(/(^|\n)([> ]+)/gm, function () {
|
||||||
return (arguments && 2 < arguments.length) ? arguments[1] + $.trim(arguments[2].replace(/[\s]/, '')) + ' ' : '';
|
return (arguments && 2 < arguments.length) ? arguments[1] + $.trim(arguments[2].replace(/[\s]/g, '')) + ' ' : '';
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
@ -9149,8 +9149,8 @@ module.exports = window;
|
||||||
$sComment = Utils.trim($sComment).replace(/^[(]+/, '').replace(/[)]+$/, '');
|
$sComment = Utils.trim($sComment).replace(/^[(]+/, '').replace(/[)]+$/, '');
|
||||||
|
|
||||||
// Remove backslash
|
// Remove backslash
|
||||||
$sName = $sName.replace(/\\\\(.)/, '$1');
|
$sName = $sName.replace(/\\\\(.)/g, '$1');
|
||||||
$sComment = $sComment.replace(/\\\\(.)/, '$1');
|
$sComment = $sComment.replace(/\\\\(.)/g, '$1');
|
||||||
|
|
||||||
this.name = $sName;
|
this.name = $sName;
|
||||||
this.email = $sEmail;
|
this.email = $sEmail;
|
||||||
|
|
@ -19926,18 +19926,18 @@ module.exports = window;
|
||||||
sSignature = sSignature.substr(6);
|
sSignature = sSignature.substr(6);
|
||||||
}
|
}
|
||||||
|
|
||||||
sSignature = sSignature.replace(/[\r]/, '');
|
sSignature = sSignature.replace(/[\r]/g, '');
|
||||||
|
|
||||||
sFrom = Utils.pString(sFrom);
|
sFrom = Utils.pString(sFrom);
|
||||||
if ('' !== 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(/{{FROM}}/g, '');
|
||||||
sSignature = sSignature.replace(/{{DATE}}/, moment().format('llll'));
|
sSignature = sSignature.replace(/{{DATE}}/g, moment().format('llll'));
|
||||||
|
|
||||||
if (sData && Enums.ComposeType.Empty === sComposeType &&
|
if (sData && Enums.ComposeType.Empty === sComposeType &&
|
||||||
-1 < sSignature.indexOf('{{DATA}}'))
|
-1 < sSignature.indexOf('{{DATA}}'))
|
||||||
|
|
@ -19946,7 +19946,7 @@ module.exports = window;
|
||||||
sSignature = sSignature.replace('{{DATA}}', sData);
|
sSignature = sSignature.replace('{{DATA}}', sData);
|
||||||
}
|
}
|
||||||
|
|
||||||
sSignature = sSignature.replace(/{{DATA}}/, '');
|
sSignature = sSignature.replace(/{{DATA}}/g, '');
|
||||||
|
|
||||||
if (!bHtml)
|
if (!bHtml)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
8
rainloop/v/0.0.0/static/js/app.min.js
vendored
8
rainloop/v/0.0.0/static/js/app.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue