mirror of
https://github.com/gchq/CyberChef.git
synced 2024-11-16 08:58:30 +01:00
Small correction to continueWhile
This commit is contained in:
parent
dfd4cca43f
commit
3921b4f445
1 changed files with 1 additions and 2 deletions
|
@ -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));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue