You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

rfc2047

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rfc2047 - npm Package Compare versions

Comparing version

to
1.0.2

2

lib/rfc2047.js

@@ -201,3 +201,3 @@ /*jshint regexp:false*/

var matchWhitespaceOrQuotesAtEnd = token.match(/[\s"]+$/);
var matchWhitespaceOrQuotesAtEnd = token.match(/\\?[\s"]+$/);
if (matchWhitespaceOrQuotesAtEnd) {

@@ -204,0 +204,0 @@ tokens.splice(i + 1, 0, matchWhitespaceOrQuotesAtEnd[0]);

{
"name": "rfc2047",
"version": "1.0.1",
"version": "1.0.2",
"description": "Encode and decode rfc2047 (MIME encoded words)",

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

@@ -96,2 +96,6 @@ /*global describe, it*/

});
it('should not split a backslash from the doublequote it is escaping', function () {
expect('"Öland\\""', 'to encode to', '"=?iso-8859-1?Q?=D6land?=\\""');
});
});

@@ -98,0 +102,0 @@