diff --git a/src/core/config/OperationConfig.js b/src/core/config/OperationConfig.js index cd6cd1b8..f6c72b83 100644 --- a/src/core/config/OperationConfig.js +++ b/src/core/config/OperationConfig.js @@ -323,7 +323,7 @@ const OperationConfig = { }, "To Base85": { module: "Default", - description: "Base85 (similar to Base64) is a notation for encoding arbitrary byte data. It is usually more efficient that Base64.

This operation encodes data in an ASCII string (with an alphabet of your choosing, presets included).

e.g. hello world becomes BOu!rD]j7BEbo7

Base85 is commonly used in Adobe's PostScript and PDF file formats.

Options
AlphabetInclude delimeter
Adds a '<~' and '~>' delimeter to the start and end of the data. This is standard for Adobe's implementation of Base85.", + description: "Base85 (similar to Base64) is a notation for encoding arbitrary byte data. It is usually more efficient that Base64.

This operation encodes data in an ASCII string (with an alphabet of your choosing, presets included).

e.g. hello world becomes BOu!rD]j7BEbo7

Base85 is commonly used in Adobe's PostScript and PDF file formats.

Options
AlphabetInclude delimiter
Adds a '<~' and '~>' delimiter to the start and end of the data. This is standard for Adobe's implementation of Base85.", inputType: "byteArray", outputType: "string", args: [ @@ -333,9 +333,9 @@ const OperationConfig = { value: Base85.ALPHABET_OPTIONS }, { - name: "Include delimeter", + name: "Include delimiter", type: "boolean", - value: Base85.INCLUDE_DELIMETER + value: Base85.INCLUDE_DELIMITER }, ] }, diff --git a/src/core/operations/Base85.js b/src/core/operations/Base85.js index d8a4288b..ec0445b6 100644 --- a/src/core/operations/Base85.js +++ b/src/core/operations/Base85.js @@ -33,7 +33,7 @@ const Base85 = { * @constant * @default */ - INCLUDE_DELIMETER: false, + INCLUDE_DELIMITER: false, /** * To Base85 operation. @@ -72,14 +72,14 @@ const Base85 = { if (input.length < i + 4) { digits.splice(input.length - (i + 4), 4); } - + result += digits.map(digit => alphabet[digit]).join(""); } else { result += (encoding === "Standard") ? "z" : null; } } - if (args[1] || Base85.INCLUDE_DELIMETER) result = "<~" + result + "~>"; + if (args[1] || Base85.INCLUDE_DELIMITER) result = "<~" + result + "~>"; return result; },