mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-07 03:12:33 +01:00
This commit is contained in:
parent
8d2319e011
commit
1c685c86a7
@ -710,7 +710,11 @@
|
||||
if ( listEntry.title === '' || listEntry.group === 'custom' ) {
|
||||
matches = head.match(/(?:^|\n)!\s*Title:([^\n]+)/i);
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user