email-reply-parser
Advanced tools
Comparing version 1.0.7 to 1.0.8
@@ -13,3 +13,5 @@ var FragmentDTO = require("./fragmentdto"); | ||
/^\s*(El(?:(?!^>*\s*El\b|\bescribió:)[\s\S]){0,1000}escribió:)$/m, // El DATE, NAME <EMAIL> escribió: | ||
/^\s*(Il(?:(?!^>*\s*Il\b|\bscritto:)[\s\S]){0,100}scritto:)$/m, // Il DATE, NAME <EMAIL> ha scritto: | ||
/^\s*(Il(?:(?!^>*\s*Il\b|\bscritto:)[\s\S]){0,1000}scritto:)$/m, // Il DATE, NAME <EMAIL> ha scritto: | ||
/^\s*(Em(?:(?!^>*\s*Em\b|\bescreveu:)[\s\S]){0,1000}escreveu:)$/m, // Em DATE, NAME <EMAIL>escreveu: | ||
/^\s*(Op\s[\s\S]+?schreef[\s\S]+:)$/m, // Il DATE, schreef NAME <EMAIL>: | ||
@@ -16,0 +18,0 @@ /^\s*((W\sdniu|Dnia)\s[\s\S]+?(pisze|napisał(\(a\))?):)$/mu, // W dniu DATE, NAME <EMAIL> pisze|napisał: |
{ | ||
"name": "email-reply-parser", | ||
"version": "1.0.7", | ||
"version": "1.0.8", | ||
"description": "Node library for parsing plain text email content. Based on https://github.com/willdurand/EmailReplyParser", | ||
@@ -5,0 +5,0 @@ "main": "lib/emailreplyparser.js", |
@@ -11,3 +11,2 @@ # Email Reply Parser | ||
## Usage | ||
----- | ||
@@ -14,0 +13,0 @@ ``` javascript |
@@ -230,2 +230,12 @@ var fs = require("fs"); | ||
exports.test_email_portuguese = function(test) { | ||
let email = get_email("email_portuguese"); | ||
let fragments = email.getFragments(); | ||
test.equal(COMMON_FIRST_FRAGMENT, fragments[0].toString().trim()); | ||
test.done(); | ||
}; | ||
exports.test_email_gmail_no = function(test) { | ||
@@ -241,2 +251,3 @@ let email = get_email("email_norwegian_gmail"); | ||
exports.test_email_with_correct_signature = function(test) { | ||
@@ -243,0 +254,0 @@ let email = get_email("correct_sig"); |
72339
51
424
23