Skip to content

Instantly share code, notes, and snippets.

@ashleygwilliams
Created June 29, 2016 23:23
Show Gist options
  • Save ashleygwilliams/f48cddfda2d2c6662396755d9a99a43b to your computer and use it in GitHub Desktop.
Save ashleygwilliams/f48cddfda2d2c6662396755d9a99a43b to your computer and use it in GitHub Desktop.
checking:mysql-prettify
/Users/ag_dubs/npm/bad-words-follower/index.js:23
        if ((change.doc.readme).match(bad_words[i])) {
                                ^

TypeError: change.doc.readme.match is not a function
15   changes(function(change, done) {
16     if (change.seq >= end_sequence) {
17       fs.writeFileSync("results.txt", JSON.stringify(results, null, 2))
18       process.exit(0);
19     }
20     if (change.doc.name && change.doc.readme) {
21       console.log("checking:" + change.doc.name);
22       for(var i = 0; i < bad_words.length; i++) {
23         if ((change.doc.readme).match(bad_words[i])) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment