mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-22 07:46:16 -04:00
Patch: string formatting
This commit is contained in:
parent
5cf7f823e6
commit
10865d8a24
1 changed files with 1 additions and 1 deletions
|
@ -47,7 +47,7 @@ class InsertDelimiter extends Operation {
|
||||||
return "Invalid interval: must be a positive integer.";
|
return "Invalid interval: must be a positive integer.";
|
||||||
}
|
}
|
||||||
|
|
||||||
return input.match(new RegExp(`.{1,${parseInt(args[0])}}`, 'g')).join(args[1]);
|
return input.match(new RegExp(`.{1,${parseInt(args[0])}}`, "g")).join(args[1]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue