Comparing version 1.0.1 to 1.0.2
@@ -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 @@ |
28684
386