mirror of
https://github.com/gchq/CyberChef.git
synced 2025-05-14 10:06:58 -04:00
Starting to rejig it
This commit is contained in:
parent
3fa3c31e31
commit
9f3b185f77
40 changed files with 131 additions and 82 deletions
|
@ -6,6 +6,7 @@
|
|||
|
||||
import Operation from "../Operation.mjs";
|
||||
import OperationError from "../errors/OperationError.mjs";
|
||||
import magicObject from "../lib/MagicObject.mjs";
|
||||
import Utils from "../Utils.mjs";
|
||||
|
||||
/**
|
||||
|
@ -42,7 +43,7 @@ class CSVToJSON extends Operation {
|
|||
value: ["Array of dictionaries", "Array of arrays"]
|
||||
}
|
||||
];
|
||||
this.patterns = [
|
||||
this.checks = new magicObject([
|
||||
{
|
||||
match: "^\\s*([A-Z\\s]*,){5}",
|
||||
flags: "i",
|
||||
|
@ -53,7 +54,7 @@ class CSVToJSON extends Operation {
|
|||
flags: "i",
|
||||
args: [",", "\r\n", "Array of arrays"]
|
||||
}
|
||||
];
|
||||
]);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue