-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
False positive on "Pass" #110
Comments
Thanks for submitting this issue, I'm sorry that its filtering a word that it shouldn't be. Unfortunately this is happening due to how the page is structured, as shown below: When the filter analyzes the text, it is getting it in pieces. So, the first piece that it gets is: Unfortunately, I am not sure the best way to address this, but at least we can explain why it is happening. There shouldn't be a false positive with the word "pass", which you can verify in other places, but this instance makes it tough. I will need some time to see if I can find a good way to address this. |
Sounds like problem is that the text is being split up into separate text nodes.
I haven't tested to see if that solves the problem, but a simpler solution could be to just call |
Thanks for the suggestions! I will take a look at the implementation when I get some time, but that blog post and accompanying demo look promising. Unfortunately normalize doesn't seem to work in this instance, and it has the drawback of usually formatting. |
Thanks to @duckbrain for pointing me to that wonderful library, I have now released version 2.0.0 which should address the issue when running in Advanced mode. I am hesitant to use the library everywhere because I did observe some slowdown, though not significant. Please let me know if it works for you in advanced mode, or if you have any more concerns or comments. |
Description
This text: "I’ve been waiting for the first decent snow at Snoqualmie Pass"
was rendered as "I’ve been waiting for the first decent snow at Snoqualmie P***"
Later, when "pass" was not capitalized, it was handled correctly.
Details (Bugs Only)
Firefox Version: 63.0.3 64 bit
Extension Version: don't know, I don't see where this is displayed
Operating System: Windows 10
Site(s) Affected: I assume any but found here in the comments: https://jalopnik.com/reminder-yes-you-absolutely-need-winter-tires-even-if-1830590607
Steps to reproduce (Bugs only)
Other details
Screenshots
The text was updated successfully, but these errors were encountered: