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
43
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.3 to 1.0.4

test/fixtures/email_sent_from.txt

2

lib/parser/emailparser.js

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

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

@@ -8,0 +8,0 @@ const QUOTE_REGEX = /(>+)$/;

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

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

I get proper rendering as well.
Sent from a magnificent torch of pixels
Sent a magnificent torch of pixels

@@ -5,0 +5,0 @@ On Dec 16, 2011, at 12:47 PM, Corey Donohoe

@@ -287,1 +287,11 @@ var fs = require("fs");

};
exports.test_test_from = function(test) {
let email = get_email("email_sent_from");
let fragments = email.getFragments();
test.equal(email.getVisibleText(), "Hi it can happen to any texts you type, as long as you type in between words or paragraphs.\n");
test.done();
};
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