mirror of
https://github.com/gchq/CyberChef.git
synced 2025-05-09 15:55:01 -04:00
Removing ARITMETIC_OPTIONS from Delim.mjs
This commit is contained in:
parent
f9cbb6246b
commit
3a17b7dde2
3 changed files with 5 additions and 7 deletions
|
@ -46,11 +46,6 @@ export const HASH_DELIM_OPTIONS = ["Line feed", "CRLF", "Space", "Comma"];
|
|||
*/
|
||||
export const IP_DELIM_OPTIONS = ["Line feed", "CRLF", "Space", "Comma", "Semi-colon"];
|
||||
|
||||
/**
|
||||
* Math operations
|
||||
*/
|
||||
export const ARITMETIC_OPTIONS = ["Add", "Subtract", "Multiply", "Divide"];
|
||||
|
||||
/**
|
||||
* Split delimiters.
|
||||
*/
|
||||
|
|
|
@ -6,8 +6,11 @@
|
|||
import BigNumber from "bignumber.js";
|
||||
import Operation from "../Operation.mjs";
|
||||
import { sum, sub, multi, div, createNumArrayFromTwoStrings } from "../lib/Arithmetic.mjs";
|
||||
import { ARITMETIC_OPTIONS } from "../lib/Delim.mjs";
|
||||
|
||||
/**
|
||||
* Math operations
|
||||
*/
|
||||
const ARITMETIC_OPTIONS = ["Add", "Subtract", "Multiply", "Divide"];
|
||||
|
||||
/**
|
||||
* Sum operation
|
||||
|
|
|
@ -38,7 +38,7 @@ TestRegister.addTests([
|
|||
]
|
||||
},
|
||||
{
|
||||
name: "Multiply by value",
|
||||
name: "Divide by value",
|
||||
input: "10",
|
||||
expectedOutput: "5",
|
||||
recipeConfig: [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue