iorate / ublacklist

Blocks specific sites from appearing in Google search results
https://iorate.github.io/ublacklist/
MIT License
5.69k stars 295 forks source link

'title/' blocking is not occuring on the exact word being filtered #441

Closed realAzazello closed 7 months ago

realAzazello commented 7 months ago

Might be related/exact to https://github.com/iorate/ublacklist/issues/421

Expected Behavior

Using expression title/anal/i. Expect only case-INsensitive "anal" word to be filtered in results' titles.

Actual Behavior

Titles with words like 'Analytics' and 'Analyst' are being blocked.

Steps to Reproduce the Problem

  1. Use filter title/anal/i
  2. Do a Gsearch on ("salary" | "pay range") "Compliance Manager"

Specifications

iorate commented 7 months ago

title/\banal\b/i https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Regular_expressions/Word_boundary_assertion