Skip to content

Behaviour of removeparam when using end of string identifier ($) #2685

Answered by gwarser
partingscientist asked this question in Q&A
Discussion options

You must be logged in to vote

perhaps means sending a GET request to https://example.com/?foo=, which explains...

This is because:

When using a literal regular expression, it gets tested against each query parameter name-value pair assembled into a single string as name=value.

uBO is doing the "assembling" internally, that's why there is the equation sign. https://github.com/gorhill/uBlock/blob/257cfad90d515f4c6fb03f8f2ec3fbf3f3fd6487/src/js/static-net-filtering.js#L5425

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by partingscientist
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants