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.5 to 1.0.6

20

lib/parser/emailparser.js

@@ -5,4 +5,2 @@ var FragmentDTO = require("./fragmentdto");

const SIG_REGEX = /(?:^\s*--|^\s*__|^—$|^—\w|^-\w|^-- $)|(?:^Sent from (?:\s*.+)$)|(?:^={30,}$)$/;
const QUOTE_REGEX = /(>+)$/;

@@ -33,2 +31,14 @@

this.signatureRegex = [
/^\s*--/,
/^\s*__/,
/^—/,
/^—\w/,
/^-\w/,
/^-- $/,
/^Sent from (?:\s*.+)$/,
/^Envoyé depuis (?:\s*.+)$/,
/^={30,}$/
];
this.fragments = [];

@@ -155,3 +165,7 @@ }

isSignature(line) {
return SIG_REGEX.test(this.stringReverse(line));
let text = this.stringReverse(line);
return this.signatureRegex.some((regex) => {
return regex.test(text);
});
}

@@ -158,0 +172,0 @@

2

package.json
{
"name": "email-reply-parser",
"version": "1.0.5",
"version": "1.0.6",
"description": "Node library for parsing plain text email content. Based on https://github.com/willdurand/EmailReplyParser",

@@ -5,0 +5,0 @@ "main": "lib/emailreplyparser.js",

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