RE: check should not be case sensitive
This commit is contained in:
parent
2342806576
commit
91e0c44d9d
|
@ -665,13 +665,12 @@ function FullScreenEditorModule(options) {
|
||||||
// We want to prefix the subject with "RE: " only if it's not already
|
// We want to prefix the subject with "RE: " only if it's not already
|
||||||
// that way -- avoid RE: RE: RE: RE: ...
|
// that way -- avoid RE: RE: RE: RE: ...
|
||||||
//
|
//
|
||||||
var newSubj = self.replyToMessage.subject;
|
let newSubj = self.replyToMessage.subject;
|
||||||
if(!_.startsWith(self.replyToMessage.subject, 'RE:')) {
|
if(false === /^RE:\s+/i.test(newSubj)) {
|
||||||
newSubj = 'RE: ' + newSubj;
|
newSubj = `RE: ${newSubj}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
self.setHeaderText(MCICodeIds.ReplyEditModeHeader.Subject, newSubj);
|
self.setHeaderText(MCICodeIds.ReplyEditModeHeader.Subject, newSubj);
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
this.initFooterViewMode = function() {
|
this.initFooterViewMode = function() {
|
||||||
|
|
Loading…
Reference in New Issue