Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
......@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment