mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-10 09:07:54 +01:00
This commit is contained in:
parent
8d2319e011
commit
1c685c86a7
1 changed files with 5 additions and 1 deletions
|
@ -710,7 +710,11 @@
|
||||||
if ( listEntry.title === '' || listEntry.group === 'custom' ) {
|
if ( listEntry.title === '' || listEntry.group === 'custom' ) {
|
||||||
matches = head.match(/(?:^|\n)!\s*Title:([^\n]+)/i);
|
matches = head.match(/(?:^|\n)!\s*Title:([^\n]+)/i);
|
||||||
if ( matches !== null ) {
|
if ( matches !== null ) {
|
||||||
listEntry.title = matches[1].trim();
|
// https://bugs.chromium.org/p/v8/issues/detail?id=2869
|
||||||
|
// JSON.stringify/JSON.parse is to work around String.slice()
|
||||||
|
// potentially causing the whole raw filter list to be held in
|
||||||
|
// memory just because we cut out the title as a substring.
|
||||||
|
listEntry.title = JSON.parse(JSON.stringify(matches[1].trim()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Extract update frequency information
|
// Extract update frequency information
|
||||||
|
|
Loading…
Reference in a new issue