Google Reader Filter

By Elad Ossadon Last update Jun 9, 2011 — Installed 53,176 times.

Can't filter Chinese text title

in
Subscribe to Can't filter Chinese text title 4 posts, 4 voices



once Scriptwright

thanks for the great tool, however it seems the filter can't work with RSS item with Chinese text in the title.

For example if a RSS item with title of: "AABB (a chinese text)", I can neither filter this item by AABB nor (a chinese text).

thanks for the feedback!

 
taga Scriptwright

I have this problem too.
I tried to add the Chinese unicode "\u4e00-\u9fa5" into the source, but it doesn't work.

 
only-u User
FirefoxWindows

Great tool~
I got the same problem. So I modified code(one line) to fix it:

function getRegExp(items) {
//return new RegExp("(^| )("+items.join("|")+")($| )","i");
return new RegExp("("+items.join("|")+")","i");
}

Now it works for Chinese(need more test). But I am not sure if there is any side effect. Please help to solve it, Thanks!

 
Elad Ossadon Script's Author
ChromeMacintosh

According to what I understood, Chinese words are joined. So you need to create a RegExp match for only a part of the word, using .* before and after the term, or like @only-u did, force matching of only part of the words and not whole words.

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel