mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-06 16:07:03 +03:00
parent
cb58103c23
commit
cf80b8f21b
5 changed files with 85 additions and 7 deletions
|
|
@ -433,12 +433,38 @@ Utils.removeSelection = function ()
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @param {string} sPrefix
|
||||||
|
* @param {string} sSubject
|
||||||
|
* @return {string}
|
||||||
|
*/
|
||||||
|
Utils.replySubjectAdd = function (sPrefix, sSubject)
|
||||||
|
{
|
||||||
|
var
|
||||||
|
oMatch = null,
|
||||||
|
sResult = Utils.trim(sSubject)
|
||||||
|
;
|
||||||
|
|
||||||
|
if (null !== (oMatch = (new window.RegExp('^' + sPrefix + '[\\s]?\\:(.*)$', 'gi')).exec(sSubject)) && !Utils.isUnd(oMatch[1]) ||
|
||||||
|
null !== (oMatch = (new window.RegExp('^' + sPrefix + '[\\s]?[\\[\\(][\\d]+[\\]\\)][\\s]?\\:(.*)$', 'gi')).exec(sSubject)) && !Utils.isUnd(oMatch[1]))
|
||||||
|
{
|
||||||
|
sResult = sPrefix + ': ' + Utils.trim(oMatch[1]);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
sResult = sPrefix + ': ' + sSubject;
|
||||||
|
}
|
||||||
|
|
||||||
|
return sResult.replace(/[\s]+/g, ' ');
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @deprecated
|
||||||
* @param {string} sPrefix
|
* @param {string} sPrefix
|
||||||
* @param {string} sSubject
|
* @param {string} sSubject
|
||||||
* @param {boolean=} bFixLongSubject = true
|
* @param {boolean=} bFixLongSubject = true
|
||||||
* @return {string}
|
* @return {string}
|
||||||
*/
|
*/
|
||||||
Utils.replySubjectAdd = function (sPrefix, sSubject, bFixLongSubject)
|
Utils._replySubjectAdd_ = function (sPrefix, sSubject, bFixLongSubject)
|
||||||
{
|
{
|
||||||
var
|
var
|
||||||
oMatch = null,
|
oMatch = null,
|
||||||
|
|
|
||||||
|
|
@ -1231,12 +1231,38 @@ Utils.removeSelection = function ()
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @param {string} sPrefix
|
||||||
|
* @param {string} sSubject
|
||||||
|
* @return {string}
|
||||||
|
*/
|
||||||
|
Utils.replySubjectAdd = function (sPrefix, sSubject)
|
||||||
|
{
|
||||||
|
var
|
||||||
|
oMatch = null,
|
||||||
|
sResult = Utils.trim(sSubject)
|
||||||
|
;
|
||||||
|
|
||||||
|
if (null !== (oMatch = (new window.RegExp('^' + sPrefix + '[\\s]?\\:(.*)$', 'gi')).exec(sSubject)) && !Utils.isUnd(oMatch[1]) ||
|
||||||
|
null !== (oMatch = (new window.RegExp('^' + sPrefix + '[\\s]?[\\[\\(][\\d]+[\\]\\)][\\s]?\\:(.*)$', 'gi')).exec(sSubject)) && !Utils.isUnd(oMatch[1]))
|
||||||
|
{
|
||||||
|
sResult = sPrefix + ': ' + Utils.trim(oMatch[1]);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
sResult = sPrefix + ': ' + sSubject;
|
||||||
|
}
|
||||||
|
|
||||||
|
return sResult.replace(/[\s]+/g, ' ');
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @deprecated
|
||||||
* @param {string} sPrefix
|
* @param {string} sPrefix
|
||||||
* @param {string} sSubject
|
* @param {string} sSubject
|
||||||
* @param {boolean=} bFixLongSubject = true
|
* @param {boolean=} bFixLongSubject = true
|
||||||
* @return {string}
|
* @return {string}
|
||||||
*/
|
*/
|
||||||
Utils.replySubjectAdd = function (sPrefix, sSubject, bFixLongSubject)
|
Utils._replySubjectAdd_ = function (sPrefix, sSubject, bFixLongSubject)
|
||||||
{
|
{
|
||||||
var
|
var
|
||||||
oMatch = null,
|
oMatch = null,
|
||||||
|
|
|
||||||
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
|
|
@ -1234,12 +1234,38 @@ Utils.removeSelection = function ()
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @param {string} sPrefix
|
||||||
|
* @param {string} sSubject
|
||||||
|
* @return {string}
|
||||||
|
*/
|
||||||
|
Utils.replySubjectAdd = function (sPrefix, sSubject)
|
||||||
|
{
|
||||||
|
var
|
||||||
|
oMatch = null,
|
||||||
|
sResult = Utils.trim(sSubject)
|
||||||
|
;
|
||||||
|
|
||||||
|
if (null !== (oMatch = (new window.RegExp('^' + sPrefix + '[\\s]?\\:(.*)$', 'gi')).exec(sSubject)) && !Utils.isUnd(oMatch[1]) ||
|
||||||
|
null !== (oMatch = (new window.RegExp('^' + sPrefix + '[\\s]?[\\[\\(][\\d]+[\\]\\)][\\s]?\\:(.*)$', 'gi')).exec(sSubject)) && !Utils.isUnd(oMatch[1]))
|
||||||
|
{
|
||||||
|
sResult = sPrefix + ': ' + Utils.trim(oMatch[1]);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
sResult = sPrefix + ': ' + sSubject;
|
||||||
|
}
|
||||||
|
|
||||||
|
return sResult.replace(/[\s]+/g, ' ');
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @deprecated
|
||||||
* @param {string} sPrefix
|
* @param {string} sPrefix
|
||||||
* @param {string} sSubject
|
* @param {string} sSubject
|
||||||
* @param {boolean=} bFixLongSubject = true
|
* @param {boolean=} bFixLongSubject = true
|
||||||
* @return {string}
|
* @return {string}
|
||||||
*/
|
*/
|
||||||
Utils.replySubjectAdd = function (sPrefix, sSubject, bFixLongSubject)
|
Utils._replySubjectAdd_ = function (sPrefix, sSubject, bFixLongSubject)
|
||||||
{
|
{
|
||||||
var
|
var
|
||||||
oMatch = null,
|
oMatch = null,
|
||||||
|
|
|
||||||
2
rainloop/v/0.0.0/static/js/app.min.js
vendored
2
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