{"action":"created","issue":{"url":"https://api.github.com/repos/jasonhall/codesearch/issues/17","labels_url":"https://api.github.com/repos/jasonhall/codesearch/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/jasonhall/codesearch/issues/17/comments","events_url":"https://api.github.com/repos/jasonhall/codesearch/issues/17/events","html_url":"https://github.com/jasonhall/codesearch/issues/17","id":57509133,"number":17,"title":"regex->trigram has wrong behaviour when trigrams are question-marked","user":{"login":"GoogleCodeExporter","id":9614759,"avatar_url":"https://avatars.githubusercontent.com/u/9614759?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogleCodeExporter","html_url":"https://github.com/GoogleCodeExporter","followers_url":"https://api.github.com/users/GoogleCodeExporter/followers","following_url":"https://api.github.com/users/GoogleCodeExporter/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCodeExporter/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCodeExporter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCodeExporter/subscriptions","organizations_url":"https://api.github.com/users/GoogleCodeExporter/orgs","repos_url":"https://api.github.com/users/GoogleCodeExporter/repos","events_url":"https://api.github.com/users/GoogleCodeExporter/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCodeExporter/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jasonhall/codesearch/labels/auto-migrated","name":"auto-migrated","color":"ededed"},{"url":"https://api.github.com/repos/jasonhall/codesearch/labels/Priority-Medium","name":"Priority-Medium","color":"ededed"},{"url":"https://api.github.com/repos/jasonhall/codesearch/labels/Type-Defect","name":"Type-Defect","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-02-12T19:42:33Z","updated_at":"2015-02-12T19:42:34Z","closed_at":null,"body":"```\nbash$ csearch -verbose \"foo_(bar_)?\" >/dev/null\n2012/03/05 10:44:37 query: \"_ba\" \"foo\" \"o_b\" \"oo_\"\n2012/03/05 10:44:37 post query identified 11 possible files\nbash$ csearch -verbose \"foo_b(ar_)?\" >/dev/null\n2012/03/05 10:44:44 query: \"foo\" \"o_b\" \"oo_\"\n2012/03/05 10:44:44 post query identified 12 possible files\n\nIn the first example, \"_ba\" and \"o_b\"' should not be required trigrams for the \nfile.  In the second example, \"ar_\" is correctly _not_ included in the list of \nrequired trigrams.\n\nI'll take a look at this later tonight.  It looks like an issue with precedence \nin index/regexp.go.  (I.e., the question mark is only applying to the final \ntrigram, and not all trigrams included in the grouping. ).\n```\n\n-----\nOriginal issue reported on code.google.com by dgryski on 5 Mar 2012 at 10:07"},"comment":{"url":"https://api.github.com/repos/jasonhall/codesearch/issues/comments/74138184","html_url":"https://github.com/jasonhall/codesearch/issues/17#issuecomment-74138184","issue_url":"https://api.github.com/repos/jasonhall/codesearch/issues/17","id":74138184,"user":{"login":"GoogleCodeExporter","id":9614759,"avatar_url":"https://avatars.githubusercontent.com/u/9614759?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogleCodeExporter","html_url":"https://github.com/GoogleCodeExporter","followers_url":"https://api.github.com/users/GoogleCodeExporter/followers","following_url":"https://api.github.com/users/GoogleCodeExporter/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCodeExporter/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCodeExporter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCodeExporter/subscriptions","organizations_url":"https://api.github.com/users/GoogleCodeExporter/orgs","repos_url":"https://api.github.com/users/GoogleCodeExporter/repos","events_url":"https://api.github.com/users/GoogleCodeExporter/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCodeExporter/received_events","type":"User","site_admin":false},"created_at":"2015-02-12T19:42:34Z","updated_at":"2015-02-12T19:42:34Z","body":"```\nThis issue was closed by revision 56b76ffbf8bb.\n```\n\n-----\nOriginal comment by dgryski on 2 May 2012 at 8:26\n* Changed state: **Fixed**"}}