brave-experiments / ad-block

Ad block engine used in the Brave browser for ABP filter syntax based lists like EasyList.
https://www.brave.com
Mozilla Public License 2.0
239 stars 95 forks source link

Fix incorrect handling of filters beginning with circumflex (^). #152

Closed iefremov closed 5 years ago

iefremov commented 5 years ago

Basically reworked the string matching function, making it shorter and simpler and added some tests.

Fix https://github.com/brave/ad-block/issues/150