mirror of
https://github.com/gorhill/uBlock.git
synced 2024-09-02 17:19:38 +02:00
Fix not properly resetting needle buffer in createTrieFromStoredDomainOpt()
Related issue: - https://github.com/uBlockOrigin/uBlock-issues/issues/1902 The cached needle didn't match the one stored in the needle buffer when resetting the cached needle without resetting the needle buffer.
This commit is contained in:
parent
7998eada5c
commit
d66cd1116c
@ -266,7 +266,8 @@ class HNTrieContainer {
|
||||
this.add(itrie);
|
||||
}
|
||||
}
|
||||
this.needle = ''; // Important
|
||||
this.needle = ''; // Important
|
||||
this.buf[255] = 0; // Important
|
||||
return itrie;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user