Commit 1cc0e6f4 authored by rswindell's avatar rswindell
Browse files

From RFC2047:

   Any amount of linear-space-white between 'encoded-word's,
   even if it includes a CRLF followed by one or more SPACEs,
   is ignored for the purposes of display.
parent 573fa72d
......@@ -11,7 +11,7 @@ require("utf8_cp437.js", 'utf8_cp437');
function decode(hvalue)
var result = [];
var regex = /(\=\?[a-zA-Z0-9-]+\?.\?[^ ?]+\?\=|\s*\w+\s*|\s+)/g;
var regex = /(\=\?[a-zA-Z0-9-]+\?.\?[^ ?]+\?\=|\S+\s*)/g;
var word;
while(hvalue && (word = regex.exec(hvalue)) !== null) {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment