mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-11 09:31:01 +01:00
Fix string slice extraction from parser
Reported internally.
Regression from:
- 01b1ed9a98
The regression was made apparent be the fact that
AdGuard filter lists have lines ending with the
CR character.
This commit is contained in:
parent
5408e10a95
commit
f869348d1f
1 changed files with 1 additions and 1 deletions
|
@ -758,7 +758,7 @@ const Parser = class {
|
||||||
strFromSpan(span) {
|
strFromSpan(span) {
|
||||||
if ( span.l === 0 ) { return ''; }
|
if ( span.l === 0 ) { return ''; }
|
||||||
const beg = span.i;
|
const beg = span.i;
|
||||||
return this.strFromSlices(beg, beg + span.l - 1);
|
return this.strFromSlices(beg, beg + span.l - 3);
|
||||||
}
|
}
|
||||||
|
|
||||||
isBlank() {
|
isBlank() {
|
||||||
|
|
Loading…
Reference in a new issue