Created
November 20, 2018 22:57
-
-
Save shinypb/c2e507e92d5453813af9bfaa8e51373e to your computer and use it in GitHub Desktop.
A very simple rule to filter out anything that mentions baseball
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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