RE: check should not be case sensitive

This commit is contained in:
Bryan Ashby 2016-04-11 20:22:55 -06:00
parent 2342806576
commit 91e0c44d9d
1 changed files with 3 additions and 4 deletions

View File

@ -665,13 +665,12 @@ function FullScreenEditorModule(options) {
// We want to prefix the subject with "RE: " only if it's not already
// that way -- avoid RE: RE: RE: RE: ...
//
var newSubj = self.replyToMessage.subject;
if(!_.startsWith(self.replyToMessage.subject, 'RE:')) {
newSubj = 'RE: ' + newSubj;
let newSubj = self.replyToMessage.subject;
if(false === /^RE:\s+/i.test(newSubj)) {
newSubj = `RE: ${newSubj}`;
}
self.setHeaderText(MCICodeIds.ReplyEditModeHeader.Subject, newSubj);
};
this.initFooterViewMode = function() {