mohamedmansour / stream-filter-extension

Filter your stream by removing topics from words and monitor them
http://mohamedmansour.com
9 stars 5 forks source link

Problems writing a filter. #22

Open alexander-paterson opened 13 years ago

alexander-paterson commented 13 years ago

I'm trying to filter the following:

shoesday shoeday

I have added both words to the exclusion list yet when I save and reload the stream they are not being filtered.

The filters don't seem to be case sensitive, are they?

Also tried to make a regex for it, came up with

/sho(e|es)day/

but it doesn't seem to be catching anything either. Are the regex's case sensitive? Also do they only match whole words?

Like should Shoesday! be captured by the regex or would I have to add in extra stuff to the regex to capture the capitalisation at the beginning and the exclamation mark at the end of it? What about if it was written in all capitals? Would I need to modify the regex to look for that too?

mohamedmansour commented 13 years ago

The following should work just fine:

/shoes?day/

If you want to match words with their boundaries

/\\bshoes?day\\b/

I always convert to lowercase when doing the matching. So case sensitivity doesn't matter. The one you did should work fine a swell, it matches everything that has that text. It would be equivalent with no regex:

shoeday
shoesday

I am quite confused why it wouldn't work in your case, can you show me the text you are running it. Is it enabled? Did you refresh your page? What is the URL of that stream?

alexander-paterson commented 13 years ago

This is a screenshot of my filters. http://cl.ly/1I3Y2l2X3j3o283T281Z

Here's a few urls. https://plus.google.com/111983961140937248134/posts/Nu5Wz8PYM37 https://plus.google.com/111241100413429718765/posts/TqQeW2Lukfi

this one might not be filtered as it's a share https://plus.google.com/111241100413429718765/posts/4sZgnFDKVYW

These are a few of the many.

I have the auto reload after save option checked but I have also manually reloaded the page.

I am running the dev branch of Chrome so I don't know if that's the cause of the problem.

mohamedmansour commented 13 years ago

Thanks, I will take a look at this after work, sometime tonight.

mmelosh commented 12 years ago

As this is not marked as resolved 9 months later, I expect this is the place to mention my issue as it is very similar. I am having the same problems with #fuckyoufriday and #middlefingerfriday as unabatedshagie has/d with shoeday. I entered #fuckyoufriday, /#fuckyoufriday/, and just plain fuck into my filter out list and refreshed my stream several times (including closing my browser and starting over) to no avail. These posts are not reshares that I am trying to filter.

mohamedmansour commented 12 years ago

Time has been really busy for me :) This needs to be changed as well since Google changed their layout completely :(