{"action":"created","issue":{"url":"https://api.github.com/repos/danielquinn/paperless/issues/48","repository_url":"https://api.github.com/repos/danielquinn/paperless","labels_url":"https://api.github.com/repos/danielquinn/paperless/issues/48/labels{/name}","comments_url":"https://api.github.com/repos/danielquinn/paperless/issues/48/comments","events_url":"https://api.github.com/repos/danielquinn/paperless/issues/48/events","html_url":"https://github.com/danielquinn/paperless/issues/48","id":134528665,"number":48,"title":"Tag on whole words","user":{"login":"darkermatter","id":5037324,"avatar_url":"https://avatars.githubusercontent.com/u/5037324?v=3","gravatar_id":"","url":"https://api.github.com/users/darkermatter","html_url":"https://github.com/darkermatter","followers_url":"https://api.github.com/users/darkermatter/followers","following_url":"https://api.github.com/users/darkermatter/following{/other_user}","gists_url":"https://api.github.com/users/darkermatter/gists{/gist_id}","starred_url":"https://api.github.com/users/darkermatter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/darkermatter/subscriptions","organizations_url":"https://api.github.com/users/darkermatter/orgs","repos_url":"https://api.github.com/users/darkermatter/repos","events_url":"https://api.github.com/users/darkermatter/events{/privacy}","received_events_url":"https://api.github.com/users/darkermatter/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-18T09:38:48Z","updated_at":"2016-02-18T11:37:30Z","closed_at":null,"body":"Hi Daniel,\r\n\r\nI want to tag documents by year but I have a bank account with 2002 in the number. You can guess what happens ;-)\r\n\r\nI patched Tag.matches to match only on whole words using this:\r\n\r\ntext = re.sub(r'\\W+', ' ', text.lower()).split()\r\n\r\nI wonder if it would be useful to add an option for whole word matching.\r\n\r\nCheers,\r\nJason."},"comment":{"url":"https://api.github.com/repos/danielquinn/paperless/issues/comments/185676635","html_url":"https://github.com/danielquinn/paperless/issues/48#issuecomment-185676635","issue_url":"https://api.github.com/repos/danielquinn/paperless/issues/48","id":185676635,"user":{"login":"danielquinn","id":218205,"avatar_url":"https://avatars.githubusercontent.com/u/218205?v=3","gravatar_id":"","url":"https://api.github.com/users/danielquinn","html_url":"https://github.com/danielquinn","followers_url":"https://api.github.com/users/danielquinn/followers","following_url":"https://api.github.com/users/danielquinn/following{/other_user}","gists_url":"https://api.github.com/users/danielquinn/gists{/gist_id}","starred_url":"https://api.github.com/users/danielquinn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielquinn/subscriptions","organizations_url":"https://api.github.com/users/danielquinn/orgs","repos_url":"https://api.github.com/users/danielquinn/repos","events_url":"https://api.github.com/users/danielquinn/events{/privacy}","received_events_url":"https://api.github.com/users/danielquinn/received_events","type":"User","site_admin":false},"created_at":"2016-02-18T11:37:30Z","updated_at":"2016-02-18T11:37:30Z","body":"Heh.  Yeah that's a good point.  I've just been using the Regex matcher, but I think it's probably best to make all the matching algorithms smart enough to match on word boundary.  I'll try to do this in the next couple days."}}