File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -1039,7 +1039,7 @@ MailParser.prototype._processMimeTree = function() {
1039
1039
var len = this . mailData . text . length ;
1040
1040
// if we have both html and text, process text till the length of html assuming its alternative for html
1041
1041
if ( this . mailData . html . length ) {
1042
- len = this . mailData . html . length ;
1042
+ len = Math . min ( len , this . mailData . html . length ) ;
1043
1043
}
1044
1044
for ( i = 0 , len ; i < len ; i ++ ) {
1045
1045
if ( ! returnValue . text && this . mailData . text [ i ] . content ) {
@@ -1059,7 +1059,6 @@ MailParser.prototype._processMimeTree = function() {
1059
1059
}
1060
1060
}
1061
1061
1062
-
1063
1062
if ( this . mailData . calendar . length ) {
1064
1063
returnValue . alternatives = [ ] ;
1065
1064
for ( i = 0 , len = this . mailData . calendar . length ; i < len ; i ++ ) {
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " mailparser" ,
3
3
"description" : " Asynchronous and non-blocking parser for mime encoded e-mail messages" ,
4
- "version" : " 0.6.0 " ,
4
+ "version" : " 0.6.1 " ,
5
5
"author" : " Andris Reinman" ,
6
6
"maintainers" : [{
7
7
"name" : " andris" ,
You can’t perform that action at this time.
0 commit comments