email-forward-parser 1.5.6 → 1.5.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/parser.js CHANGED
@@ -1086,6 +1086,9 @@ class Parser {
1086
1086
  _address = null;
1087
1087
  }
1088
1088
 
1089
+ _address = _address || null;
1090
+ _name = _name || null;
1091
+
1089
1092
  return {
1090
1093
  address : _address,
1091
1094
 
package/lib/utils.js CHANGED
@@ -131,7 +131,7 @@ var reconciliateSplitMatch = function(
131
131
  * @return {string} The trimed string
132
132
  */
133
133
  var trimString = function(str) {
134
- return ((str || "").trim() || null)
134
+ return ((str || "").trim() || "");
135
135
  }
136
136
 
137
137
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "email-forward-parser",
3
- "version": "1.5.6",
3
+ "version": "1.5.7",
4
4
  "description": "Parses forwarded emails and extract content",
5
5
  "author": "Eliott Vincent <eliott@crisp.chat>",
6
6
  "main": "lib/index.js",