mirror of https://github.com/gorhill/uBlock.git
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
|
@ -758,7 +758,7 @@ const Parser = class {
|
|||
strFromSpan(span) {
|
||||
if ( span.l === 0 ) { return ''; }
|
||||
const beg = span.i;
|
||||
return this.strFromSlices(beg, beg + span.l - 1);
|
||||
return this.strFromSlices(beg, beg + span.l - 3);
|
||||
}
|
||||
|
||||
isBlank() {
|
||||
|
|
Loading…
Reference in New Issue