mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-21 15:26:16 -04:00
Fixing some eslint and JSDoc issues
This commit is contained in:
parent
126debf44e
commit
8e57354307
1 changed files with 7 additions and 2 deletions
|
@ -69,7 +69,6 @@ class ToTable extends Operation {
|
||||||
return htmlOutput(tableData);
|
return htmlOutput(tableData);
|
||||||
case "Markdown":
|
case "Markdown":
|
||||||
return markdownOutput(tableData);
|
return markdownOutput(tableData);
|
||||||
|
|
||||||
default:
|
default:
|
||||||
return htmlOutput(tableData);
|
return htmlOutput(tableData);
|
||||||
}
|
}
|
||||||
|
@ -188,6 +187,12 @@ class ToTable extends Operation {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Outputs an array of data as a Markdown table.
|
||||||
|
*
|
||||||
|
* @param {string[][]} tableData
|
||||||
|
* @returns {string}
|
||||||
|
*/
|
||||||
function markdownOutput(tableData) {
|
function markdownOutput(tableData) {
|
||||||
const headerDivider = "-";
|
const headerDivider = "-";
|
||||||
const verticalBorder = "|";
|
const verticalBorder = "|";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue