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.3.0 to 1.3.1

test/fixtures/email_25.txt

3

lib/regex.js

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

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