equating caret to asterisk in blocking filters except at end

Various discussions related to Adblock Plus development
Post Reply
lewisje
Posts: 2743
Joined: Mon Jun 14, 2010 12:07 pm

equating caret to asterisk in blocking filters except at end

Post by lewisje »

I just noticed this comment in a uBlock Origin issue, in which Raymond Hill said that the extension equates ^ to * within a blocking filter except if the caret is the last character in the URL pattern: https://github.com/gorhill/uBlock/issue ... -118360778

After thinking it through for a while, I came to the conclusion that this is acceptable, that the only reasonable place to put a caret in would be the end of a URL pattern, and ABP might find some efficiency gains by doing what Raymond Hill did; I haven't dug through the code to see whether ABP already does this, however.
There's a buzzin' in my brain I really can't explain; I think about it before they make me go to bed.
Post Reply