email-reply-parser
Advanced tools
Comparing version 1.7.0 to 1.7.1
@@ -12,3 +12,3 @@ class Email { | ||
return this.filterText((fragment) => { | ||
return !fragment.isHidden; | ||
return !fragment.isHidden(); | ||
}); | ||
@@ -19,3 +19,3 @@ } | ||
return this.filterText((fragment) => { | ||
return fragment.isQuoted; | ||
return fragment.isQuoted(); | ||
}); | ||
@@ -22,0 +22,0 @@ } |
class Fragment { | ||
constructor(content, isHidden, isSignature, isQuoted) { | ||
this.content = content; | ||
this.isHidden = isHidden; | ||
this.isSignature = isSignature; | ||
this.isQuoted = isQuoted; | ||
this._content = content; | ||
this._isHidden = isHidden; | ||
this._isSignature = isSignature; | ||
this._isQuoted = isQuoted; | ||
} | ||
isHidden() { | ||
return this.isHidden; | ||
return this._isHidden; | ||
} | ||
isSignature() { | ||
return this.isSignature; | ||
return this._isSignature; | ||
} | ||
isQuoted() { | ||
return this.isQuoted; | ||
return this._isQuoted; | ||
} | ||
getContent() { | ||
return this.content; | ||
return this._content; | ||
} | ||
isEmpty() { | ||
return "" === this.getContent.replace(/\n/g, ""); | ||
return "" === this.getContent().replace(/\n/g, ""); | ||
} | ||
@@ -34,2 +34,2 @@ | ||
module.exports = Fragment; | ||
module.exports = Fragment; |
{ | ||
"name": "email-reply-parser", | ||
"version": "1.7.0", | ||
"version": "1.7.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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
13167
265