mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-20 14:56:19 -04:00
Fix formatting issue
Fixed issue where new lines were truncated.
This commit is contained in:
parent
ce6d38860d
commit
7c7d1823ca
1 changed files with 1 additions and 0 deletions
|
@ -64,6 +64,7 @@ class TakeNthBytes extends Operation {
|
||||||
let output = [];
|
let output = [];
|
||||||
for (let i = 0; i < input.length; i++) {
|
for (let i = 0; i < input.length; i++) {
|
||||||
if (eachLine && input[i] == 0x0a) {
|
if (eachLine && input[i] == 0x0a) {
|
||||||
|
output.push(0x0a);
|
||||||
offset = i + 1;
|
offset = i + 1;
|
||||||
} else if (i - offset >= start && (i - (start + offset)) % n == 0) {
|
} else if (i - offset >= start && (i - (start + offset)) % n == 0) {
|
||||||
output.push(input[i]);
|
output.push(input[i]);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue