Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

email-reply-parser

Package Overview
Dependencies
Maintainers
1
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

email-reply-parser - npm Package Compare versions

Comparing version 1.0.7 to 1.0.8

test/fixtures/email_portuguese.txt

4

lib/parser/emailparser.js

@@ -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");

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc