mirror of
https://github.com/gchq/CyberChef.git
synced 2025-05-11 08:41:32 -04:00
fixing indent
This commit is contained in:
parent
ed17ed2919
commit
13b10a68a2
1 changed files with 152 additions and 151 deletions
|
@ -8,8 +8,9 @@
|
||||||
import OperationError from "../errors/OperationError";
|
import OperationError from "../errors/OperationError";
|
||||||
import cptable from "../vendor/js-codepage/cptable.js";
|
import cptable from "../vendor/js-codepage/cptable.js";
|
||||||
import {fromBase64} from "../lib/Base64";
|
import {fromBase64} from "../lib/Base64";
|
||||||
import {decodeQuotedPrintable} from "../lib/QuotedPrintable"
|
import {decodeQuotedPrintable} from "../lib/QuotedPrintable";
|
||||||
import {MIME_FORMAT} from "../lib/ChrEnc";
|
import {MIME_FORMAT} from "../lib/ChrEnc";
|
||||||
|
import Utils from "../Utils";
|
||||||
|
|
||||||
|
|
||||||
// TODO: fix function header
|
// TODO: fix function header
|
||||||
|
@ -36,10 +37,10 @@
|
||||||
// TODO: should 8 bit and 7 bit be treated the same?
|
// TODO: should 8 bit and 7 bit be treated the same?
|
||||||
const DECODER = {
|
const DECODER = {
|
||||||
"base64": function (input) {
|
"base64": function (input) {
|
||||||
return fromBase64(input, Base64.ALPHABET, "string", true);
|
return fromBase64(input);
|
||||||
},
|
},
|
||||||
"quoted-printable": function (input) {
|
"quoted-printable": function (input) {
|
||||||
return decodeQuotedPrintable(input);
|
return Utils.byteArrayToUtf8(decodeQuotedPrintable(input));
|
||||||
},
|
},
|
||||||
"7bit": function (input) {
|
"7bit": function (input) {
|
||||||
return input;
|
return input;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue