fixing indent

This commit is contained in:
bwhitn 2018-11-20 22:36:29 -05:00
parent ed17ed2919
commit 13b10a68a2

View file

@ -8,8 +8,9 @@
import OperationError from "../errors/OperationError";
import cptable from "../vendor/js-codepage/cptable.js";
import {fromBase64} from "../lib/Base64";
import {decodeQuotedPrintable} from "../lib/QuotedPrintable"
import {decodeQuotedPrintable} from "../lib/QuotedPrintable";
import {MIME_FORMAT} from "../lib/ChrEnc";
import Utils from "../Utils";
// TODO: fix function header
@ -36,10 +37,10 @@
// TODO: should 8 bit and 7 bit be treated the same?
const DECODER = {
"base64": function (input) {
return fromBase64(input, Base64.ALPHABET, "string", true);
return fromBase64(input);
},
"quoted-printable": function (input) {
return decodeQuotedPrintable(input);
return Utils.byteArrayToUtf8(decodeQuotedPrintable(input));
},
"7bit": function (input) {
return input;