From d6b3c0c5525a8e7da8d0abe5e0b4389921cb304b Mon Sep 17 00:00:00 2001 From: mscdex Date: Wed, 10 Apr 2013 11:49:41 -0400 Subject: [PATCH] fix line ending check for string literal detection --- lib/imap.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/imap.js b/lib/imap.js index afbd9f0..461306e 100644 --- a/lib/imap.js +++ b/lib/imap.js @@ -22,7 +22,7 @@ var CRLF = '\r\n', BOXSELECTING: 3, BOXSELECTED: 4 }, - RE_LITHEADER = /(?:((?:BODY\[.*\](?:<\d+>)?)?|[^ ]+) )?\{(\d+)\}$/i, + RE_LITHEADER = /(?:((?:BODY\[.*\](?:<\d+>)?)?|[^ ]+) )?\{(\d+)\}\r\n/i, RE_UNRESP = /^\* (OK|PREAUTH|NO|BAD)(?:\r\n|(?: \[(.+?)\])?(?: (.+))?)$/i, RE_TAGGED_RESP = /^A\d+ (OK|NO|BAD) (?:\[(.+?)\] )?(.+)$/i, RE_TEXT_CODE = /([^ ]+)(?: (.*))?$/,