mirror of
https://github.com/gchq/CyberChef
synced 2025-12-05 23:53:27 +00:00
Small correction to continueWhile
This commit is contained in:
@@ -213,8 +213,7 @@ export default class Stream {
|
||||
* @param {Number} val
|
||||
*/
|
||||
consumeWhile(val) {
|
||||
while ((this.position < this.length) && (this.bytes[(this.position++)] === val))
|
||||
this.position--;
|
||||
while ((++this.position < this.length) && (this.bytes[(this.position)] === val));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user