mirror of
https://github.com/gchq/CyberChef.git
synced 2025-07-05 12:22:21 -04:00
working on test cases and dressing a bit of code
This commit is contained in:
parent
4fc37c4d02
commit
f7b8e51764
3 changed files with 25 additions and 1 deletions
|
@ -61,7 +61,7 @@ class ParseIMF extends Operation {
|
|||
const dataObj = eml.extractData(fields);
|
||||
let subject = null;
|
||||
const retval = [];
|
||||
if (dataObj.length >= 1) {
|
||||
if (dataObj.length) {
|
||||
subject = dataObj[0].fields.subject;
|
||||
if (dataObj[0].header) {
|
||||
retval.push(new File([dataObj[0].header], "Header.txt", {type: "text/plain"}));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue