email-reply-parser
Advanced tools
Comparing version 1.3.0 to 1.3.1
@@ -29,2 +29,3 @@ var RE2 = require("re2"); | ||
/^([0-9]{2}).([0-9]{2}).(20[0-9]{2})(.*)(([0-9]{2}).([0-9]{2}))(.*)\"( *)<(.*)>( *):$/m, // DD.MM.20YY HH:II NAME <EMAIL> | ||
/^[0-9]{2}:[0-9]{2}(.*)[0-9]{4}(.*)\"( *)<(.*)>( *):$/ // HH:II, DATE, "John - Acme" <john@mail.acme.com>: | ||
]); | ||
@@ -46,3 +47,3 @@ | ||
/^Best wishes,?!?$/mi, // en | ||
/^\w{0,20}\s?(\sand\s)?Regards,?!?$/mi, //en | ||
/^\w{0,20}\s?(\sand\s)?Regards,?!?!?$/mi, //en | ||
/^Von (?:\s*.+) gesendet$/, // de | ||
@@ -49,0 +50,0 @@ /^Envoyé depuis (?:\s*.+)$/, //fr |
{ | ||
"name": "email-reply-parser", | ||
"version": "1.3.0", | ||
"version": "1.3.1", | ||
"description": "Node library for parsing plain text email content. Based on https://github.com/willdurand/EmailReplyParser", | ||
@@ -5,0 +5,0 @@ "main": "lib/emailreplyparser.js", |
@@ -230,2 +230,12 @@ var fs = require("fs"); | ||
exports.test_email_25 = function(test) { | ||
let email = get_email("email_25"); | ||
let fragments = email.getFragments(); | ||
test.equal(COMMON_FIRST_FRAGMENT, fragments[0].toString().trim()); | ||
test.done(); | ||
}; | ||
exports.test_email_portuguese = function(test) { | ||
@@ -232,0 +242,0 @@ let email = get_email("email_portuguese"); |
90280
67
557