File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -745,7 +745,7 @@ class MailParser extends Transform {
745
745
let cids = new Map ( ) ;
746
746
let html = ( this . html || '' ) . toString ( ) ;
747
747
748
- html . replace ( / \b c i d : ( [ ^ ' " ] { 1 , 256 } ) / g, ( match , cid ) => {
748
+ html . replace ( / \b c i d : ( [ ^ ' " \s ] { 1 , 256 } ) / g, ( match , cid ) => {
749
749
for ( let i = 0 , len = this . attachmentList . length ; i < len ; i ++ ) {
750
750
if ( this . attachmentList [ i ] . cid === cid && / ^ i m a g e \/ [ \w ] + $ / i. test ( this . attachmentList [ i ] . contentType ) ) {
751
751
if ( / ^ i m a g e \/ [ \w ] + $ / i. test ( this . attachmentList [ i ] . contentType ) ) {
@@ -767,7 +767,7 @@ class MailParser extends Transform {
767
767
let pos = 0 ;
768
768
let processNext = ( ) => {
769
769
if ( pos >= cidList . length ) {
770
- html = html . replace ( / \b c i d : ( [ ^ ' " ] { 1 , 256 } ) / g, ( match , cid ) => {
770
+ html = html . replace ( / \b c i d : ( [ ^ ' " \s ] { 1 , 256 } ) / g, ( match , cid ) => {
771
771
if ( cids . has ( cid ) && cids . get ( cid ) . url ) {
772
772
return cids . get ( cid ) . url ;
773
773
}
You can’t perform that action at this time.
0 commit comments