mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-21 23:36:16 -04:00
Improved continueUntil, added consumeWhile and made the EVTX extractor more complete
This commit is contained in:
parent
8e2345cf9e
commit
d3c13b118d
3 changed files with 11 additions and 10 deletions
|
@ -47,6 +47,7 @@
|
|||
"block-spacing": "error",
|
||||
"array-bracket-spacing": "error",
|
||||
"comma-spacing": "error",
|
||||
"spaced-comment": ["error", "always"],
|
||||
"comma-style": "error",
|
||||
"computed-property-spacing": "error",
|
||||
"no-trailing-spaces": "warn",
|
||||
|
|
|
@ -189,7 +189,7 @@ export default class Stream {
|
|||
found = true;
|
||||
|
||||
// Loop through the elements comparing them to val.
|
||||
for (let x = length-1; x !== -1; x--) {
|
||||
for (let x = length-1; x+1; x--) {
|
||||
if (this.bytes[(this.position-length) + x] !== val[x]) {
|
||||
found = false;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue