Comparing version 4.1.0 to 4.1.1
@@ -61,13 +61,13 @@ /* eslint no-control-regex: 0, no-div-regex: 0, quotes: 0 */ | ||
// soft linebreaks are added after space symbols | ||
.reduce((previousValue, currentValue, index) => { | ||
let body = previousValue; | ||
if (delSp) { | ||
// delsp adds spaces to text to be able to fold it | ||
// these spaces can be removed once the text is unfolded | ||
body = body.replace(/[ ]+$/, ''); | ||
} | ||
if ((/ $/.test(previousValue) && !/(^|\n)-- $/.test(previousValue)) || index === 1) { | ||
return body + currentValue; | ||
.reduce((previousValue, currentValue) => { | ||
if (/ $/.test(previousValue) && !/(^|\n)-- $/.test(previousValue)) { | ||
if (delSp) { | ||
// delsp adds space to text to be able to fold it | ||
// these spaces can be removed once the text is unfolded | ||
return previousValue.slice(0, -1) + currentValue; | ||
} else { | ||
return previousValue + currentValue; | ||
} | ||
} else { | ||
return body + '\n' + currentValue; | ||
return previousValue + '\n' + currentValue; | ||
} | ||
@@ -74,0 +74,0 @@ }) |
{ | ||
"name": "libmime", | ||
"description": "Encode and decode quoted printable and base64 strings", | ||
"version": "4.1.0", | ||
"version": "4.1.1", | ||
"main": "lib/libmime", | ||
@@ -6,0 +6,0 @@ "homepage": "https://github.com/andris9/libmime", |
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
144316