{"action":"created","issue":{"url":"https://api.github.com/repos/TessMyers/headline-parser/issues/2","labels_url":"https://api.github.com/repos/TessMyers/headline-parser/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/TessMyers/headline-parser/issues/2/comments","events_url":"https://api.github.com/repos/TessMyers/headline-parser/issues/2/events","html_url":"https://github.com/TessMyers/headline-parser/issues/2","id":75727778,"number":2,"title":"Better handling of no match between headline and body?","user":{"login":"eklem","id":236656,"avatar_url":"https://avatars.githubusercontent.com/u/236656?v=3","gravatar_id":"","url":"https://api.github.com/users/eklem","html_url":"https://github.com/eklem","followers_url":"https://api.github.com/users/eklem/followers","following_url":"https://api.github.com/users/eklem/following{/other_user}","gists_url":"https://api.github.com/users/eklem/gists{/gist_id}","starred_url":"https://api.github.com/users/eklem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eklem/subscriptions","organizations_url":"https://api.github.com/users/eklem/orgs","repos_url":"https://api.github.com/users/eklem/repos","events_url":"https://api.github.com/users/eklem/events{/privacy}","received_events_url":"https://api.github.com/users/eklem/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-05-12T20:26:56Z","updated_at":"2015-05-13T12:16:08Z","closed_at":null,"body":"When there's no match between headline words and body words, `headline-parser` returns:\r\n```javascript\r\n[\"Sorry, this headline appears to be completely irrelevant to the article body. Here are your keywords anyway: posting, data, formatted, differently, multipart/form-data\"] \r\n```\r\nHeadline is:\r\n`Allow posting data formatted differently than multipart/form-data `\r\nBody is:\r\n`Title says it all. Sorry I touched all your code. Feel free to test, change it back, or modify this PR as you wish @fergiemcdowall. It should work though :+1:`\r\n\r\nIs it possible to make `headline-parser` mute when no match found?\r\nGreat project by the way :+1: "},"comment":{"url":"https://api.github.com/repos/TessMyers/headline-parser/issues/comments/101644634","html_url":"https://github.com/TessMyers/headline-parser/issues/2#issuecomment-101644634","issue_url":"https://api.github.com/repos/TessMyers/headline-parser/issues/2","id":101644634,"user":{"login":"eklem","id":236656,"avatar_url":"https://avatars.githubusercontent.com/u/236656?v=3","gravatar_id":"","url":"https://api.github.com/users/eklem","html_url":"https://github.com/eklem","followers_url":"https://api.github.com/users/eklem/followers","following_url":"https://api.github.com/users/eklem/following{/other_user}","gists_url":"https://api.github.com/users/eklem/gists{/gist_id}","starred_url":"https://api.github.com/users/eklem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eklem/subscriptions","organizations_url":"https://api.github.com/users/eklem/orgs","repos_url":"https://api.github.com/users/eklem/repos","events_url":"https://api.github.com/users/eklem/events{/privacy}","received_events_url":"https://api.github.com/users/eklem/received_events","type":"User","site_admin":false},"created_at":"2015-05-13T12:16:08Z","updated_at":"2015-05-13T12:16:08Z","body":"And working. Let me know if you want this change or not. I'll change the documentation, and upgrade the test if you want. I could add a console.log for the error message, if that's an okay place to have it?\r\nhttps://github.com/eklem/headline-parser/blob/master/headline-parser.js"}}