From 78935f8a3c367a308691869a6c9a0a7a049bee24 Mon Sep 17 00:00:00 2001 From: mscdex Date: Sun, 10 Mar 2013 10:36:29 -0400 Subject: [PATCH] constant var names should be in caps --- lib/imap.parsers.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/imap.parsers.js b/lib/imap.parsers.js index 48f2c82..67ce2ab 100644 --- a/lib/imap.parsers.js +++ b/lib/imap.parsers.js @@ -1,7 +1,7 @@ var utils = require('./imap.utilities'); -var reCRLF = /\r\n/g, - reHdr = /^([^:]+):[ \t]?(.+)?$/; +var RE_CRLF = /\r\n/g, + RE_HDR = /^([^:]+):[ \t]?(.+)?$/; exports.convStr = function(str, literals) { if (str[0] === '"') @@ -20,7 +20,7 @@ exports.convStr = function(str, literals) { }; exports.parseHeaders = function(str) { - var lines = str.split(reCRLF), + var lines = str.split(RE_CRLF), headers = {}, m; for (var i = 0, h, len = lines.length; i < len; ++i) { @@ -32,7 +32,7 @@ exports.parseHeaders = function(str) { // it, so we follow the RFC and include the leading whitespace ... headers[h][headers[h].length - 1] += lines[i]; } else { - m = reHdr.exec(lines[i]); + m = RE_HDR.exec(lines[i]); h = m[1].toLowerCase(); if (m[2]) { if (headers[h] === undefined)