mirror of
https://github.com/gchq/CyberChef
synced 2024-11-15 00:57:08 +00:00
Merge branch 'fix-xss-datetime' of https://github.com/ntomoya/CyberChef into v10
This commit is contained in:
commit
acc1df2031
1 changed files with 2 additions and 2 deletions
|
@ -24,7 +24,7 @@ class TranslateDateTimeFormat extends Operation {
|
||||||
this.description = "Parses a datetime string in one format and re-writes it in another.<br><br>Run with no input to see the relevant format string examples.";
|
this.description = "Parses a datetime string in one format and re-writes it in another.<br><br>Run with no input to see the relevant format string examples.";
|
||||||
this.infoURL = "https://momentjs.com/docs/#/parsing/string-format/";
|
this.infoURL = "https://momentjs.com/docs/#/parsing/string-format/";
|
||||||
this.inputType = "string";
|
this.inputType = "string";
|
||||||
this.outputType = "html";
|
this.outputType = "string";
|
||||||
this.args = [
|
this.args = [
|
||||||
{
|
{
|
||||||
"name": "Built in formats",
|
"name": "Built in formats",
|
||||||
|
@ -58,7 +58,7 @@ class TranslateDateTimeFormat extends Operation {
|
||||||
/**
|
/**
|
||||||
* @param {string} input
|
* @param {string} input
|
||||||
* @param {Object[]} args
|
* @param {Object[]} args
|
||||||
* @returns {html}
|
* @returns {string}
|
||||||
*/
|
*/
|
||||||
run(input, args) {
|
run(input, args) {
|
||||||
const [inputFormat, inputTimezone, outputFormat, outputTimezone] = args.slice(1);
|
const [inputFormat, inputTimezone, outputFormat, outputTimezone] = args.slice(1);
|
||||||
|
|
Loading…
Reference in a new issue