File tree 2 files changed +3
-2
lines changed
2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -113,7 +113,7 @@ var REGEXES = {
113
113
114
114
recipient : [
115
115
/ t h e f o l l o w i n g a d d r e s s e s h a d p e r m a n e n t f a t a l e r r o r s (?: .* ?) \s \< ( .+ ?) \> / i,
116
- / t h e r e w a s a t e m p o r a r y p r o b l e m d e l i v e r i n g y o u r m e s s a g e t o ( .+ ?) . G m a i l w i l l r e t r y / i,
116
+ / t h e r e w a s a t e m p o r a r y p r o b l e m (?: w h i l e ) ? d e l i v e r i n g y o u r m e s s a g e t o ( .+ ?) . G m a i l w i l l r e t r y / i,
117
117
/ t h e f o l l o w i n g m e s s a g e t o \< ( .+ ?) \> w a s u n d e l i v e r a b l e / i,
118
118
/ t o t h e f o l l o w i n g a d d r e s s e s : \s * ( .+ ) / i,
119
119
/ ^ y o u r m e s s a g e w a s n ' t d e l i v e r e d t o ( .+ ?) \s / mi, // "Your message wasn't delivered to [email protected] "
@@ -555,6 +555,7 @@ class Parser {
555
555
_str = _str . replace ( this . __regexes . line_break_double_indent_single , "\n\n" ) ;
556
556
557
557
// Replace single Line-break with regular space
558
+ // TODO: re2 doesn't support lookbehinds, so for now we use a pure-JS regex
558
559
_str = _str . replace ( / (?< ! \n ) \n (? ! \n ) / gm, " " ) ;
559
560
560
561
// Replace long indent with double Line-break
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " email-bounce-parser" ,
3
- "version" : " 1.0.21 " ,
3
+ "version" : " 1.0.22 " ,
4
4
"description" : " Parses bounce emails and extract errors" ,
5
5
"author" :
" Eliott Vincent <[email protected] >" ,
6
6
"main" : " lib/index.js" ,
You can’t perform that action at this time.
0 commit comments