From 7aaeeced9e88144dbdc41688d2019e20b89544fa Mon Sep 17 00:00:00 2001 From: Brian White Date: Tue, 26 Jul 2011 05:30:39 -0400 Subject: [PATCH] Remove unnecessary portions from regexps for mailbox status responses --- imap.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/imap.js b/imap.js index ea1fc46..d9ef023 100644 --- a/imap.js +++ b/imap.js @@ -292,11 +292,11 @@ ImapConnection.prototype.connect = function(loginCb) { self.emit('alert', result[1]); else if (self._state.status === STATES.BOXSELECTING) { var result; - if (result = /^\[UIDVALIDITY (\d+)\].*/i.exec(data[2])) + if (result = /^\[UIDVALIDITY (\d+)\]/i.exec(data[2])) self._state.box.validity = result[1]; - else if (result = /^\[UIDNEXT (\d+)\].*/i.exec(data[2])) + else if (result = /^\[UIDNEXT (\d+)\]/i.exec(data[2])) self._state.box._uidnext = result[1]; - else if (result = /^\[PERMANENTFLAGS \((.*)\)\].*/i.exec(data[2])) { + else if (result = /^\[PERMANENTFLAGS \((.*)\)\]/i.exec(data[2])) { self._state.box.permFlags = result[1].split(' '); var idx; if ((idx = self._state.box.permFlags.indexOf('\\*')) > -1) {