Skip to content

Instantly share code, notes, and snippets.

@shinypb
Created November 20, 2018 22:57
Show Gist options
  • Save shinypb/c2e507e92d5453813af9bfaa8e51373e to your computer and use it in GitHub Desktop.
Save shinypb/c2e507e92d5453813af9bfaa8e51373e to your computer and use it in GitHub Desktop.
A very simple rule to filter out anything that mentions baseball
/**
* Removes baseball-y things.
* @param {FeedItem} item
* @return {Boolean} true if we should mark this item as read, false if not
*/
module.exports = function ExcludeBaseball(item) {
return (item.content.toLowerCase().indexOf('baseball') >= 0);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment