mirror of https://github.com/gorhill/uBlock.git
Fix minor bugs spotted during code review
This commit is contained in:
parent
389d8458e0
commit
f117c280d0
|
@ -194,6 +194,7 @@ const isHnAnchored = (( ) => {
|
||||||
} else {
|
} else {
|
||||||
lastEnd = -1;
|
lastEnd = -1;
|
||||||
}
|
}
|
||||||
|
lastLen = len;
|
||||||
}
|
}
|
||||||
return matchStart < lastEnd && (
|
return matchStart < lastEnd && (
|
||||||
matchStart === lastBeg ||
|
matchStart === lastBeg ||
|
||||||
|
|
|
@ -585,7 +585,7 @@
|
||||||
}
|
}
|
||||||
const inputLength = instr.length;
|
const inputLength = instr.length;
|
||||||
const outbuf = arrbuf instanceof ArrayBuffer === false
|
const outbuf = arrbuf instanceof ArrayBuffer === false
|
||||||
? new Uint32Array(this.decodeSize(instr))
|
? new Uint32Array(this.decodeSize(instr) >> 2)
|
||||||
: new Uint32Array(arrbuf);
|
: new Uint32Array(arrbuf);
|
||||||
let i = instr.indexOf(' ', this.magic.length) + 1;
|
let i = instr.indexOf(' ', this.magic.length) + 1;
|
||||||
if ( i === -1 ) {
|
if ( i === -1 ) {
|
||||||
|
|
Loading…
Reference in New Issue