Skip to content

Commit

Permalink
treat both CR and LF as a line ending when looking for a MSGID
Browse files Browse the repository at this point in the history
  • Loading branch information
Mithgol committed Oct 16, 2014
1 parent 9f88a70 commit 1e0d94e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.html
Expand Up @@ -149,7 +149,7 @@
function(err, message){
if( err ) return phiBar.open(defaultStartingURL);

var lineMSGID = message.split('\r\n').find(function(msgLine){
var lineMSGID = message.split( /(?:\r|\n)/ ).find(function(msgLine){
return msgLine.indexOf('\x01MSGID:') === 0; // starts with
});
if( typeof lineMSGID === 'undefined'){
Expand Down

0 comments on commit 1e0d94e

Please sign in to comment.