libmime
Advanced tools
Comparing version 0.1.4 to 0.1.5
{ | ||
"name": "libmime", | ||
"description": "Encode and decode quoted printable and base64 strings", | ||
"version": "0.1.4", | ||
"version": "0.1.5", | ||
"main": "src/libmime", | ||
@@ -6,0 +6,0 @@ "homepage": "https://github.com/andris9/libmime", |
@@ -289,3 +289,3 @@ 'use strict'; | ||
libmime.buildHeaderParam(param, value, 50).forEach(function(encodedParam) { | ||
if (encodedParam.key === param && !/[\s'"\\;\/=]|^\-/.test(encodedParam.value)) { | ||
if (!/[\s"\\;\/=]|^[\-']|'$/.test(encodedParam.value)) { | ||
paramsArray.push(encodedParam.key + '=' + encodedParam.value); | ||
@@ -292,0 +292,0 @@ } else { |
129171
8