{"action":"created","issue":{"url":"https://api.github.com/repos/matteodelabre/mongoose-beautiful-unique-validation/issues/12","repository_url":"https://api.github.com/repos/matteodelabre/mongoose-beautiful-unique-validation","labels_url":"https://api.github.com/repos/matteodelabre/mongoose-beautiful-unique-validation/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/matteodelabre/mongoose-beautiful-unique-validation/issues/12/comments","events_url":"https://api.github.com/repos/matteodelabre/mongoose-beautiful-unique-validation/issues/12/events","html_url":"https://github.com/matteodelabre/mongoose-beautiful-unique-validation/pull/12","id":140415428,"number":12,"title":":bug: Fix for mongoose 4.4.6","user":{"login":"Lcfvs","id":2665124,"avatar_url":"https://avatars.githubusercontent.com/u/2665124?v=3","gravatar_id":"","url":"https://api.github.com/users/Lcfvs","html_url":"https://github.com/Lcfvs","followers_url":"https://api.github.com/users/Lcfvs/followers","following_url":"https://api.github.com/users/Lcfvs/following{/other_user}","gists_url":"https://api.github.com/users/Lcfvs/gists{/gist_id}","starred_url":"https://api.github.com/users/Lcfvs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Lcfvs/subscriptions","organizations_url":"https://api.github.com/users/Lcfvs/orgs","repos_url":"https://api.github.com/users/Lcfvs/repos","events_url":"https://api.github.com/users/Lcfvs/events{/privacy}","received_events_url":"https://api.github.com/users/Lcfvs/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-03-12T20:42:23Z","updated_at":"2016-03-17T17:07:14Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/matteodelabre/mongoose-beautiful-unique-validation/pulls/12","html_url":"https://github.com/matteodelabre/mongoose-beautiful-unique-validation/pull/12","diff_url":"https://github.com/matteodelabre/mongoose-beautiful-unique-validation/pull/12.diff","patch_url":"https://github.com/matteodelabre/mongoose-beautiful-unique-validation/pull/12.patch"},"body":"- Matching based on error codes\r\n- Ignore unrequired chars to avoid problems on typo changes\r\n- valueRegex out, useless to declare each time"},"comment":{"url":"https://api.github.com/repos/matteodelabre/mongoose-beautiful-unique-validation/issues/comments/197977250","html_url":"https://github.com/matteodelabre/mongoose-beautiful-unique-validation/pull/12#issuecomment-197977250","issue_url":"https://api.github.com/repos/matteodelabre/mongoose-beautiful-unique-validation/issues/12","id":197977250,"user":{"login":"matteodelabre","id":1370040,"avatar_url":"https://avatars.githubusercontent.com/u/1370040?v=3","gravatar_id":"","url":"https://api.github.com/users/matteodelabre","html_url":"https://github.com/matteodelabre","followers_url":"https://api.github.com/users/matteodelabre/followers","following_url":"https://api.github.com/users/matteodelabre/following{/other_user}","gists_url":"https://api.github.com/users/matteodelabre/gists{/gist_id}","starred_url":"https://api.github.com/users/matteodelabre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matteodelabre/subscriptions","organizations_url":"https://api.github.com/users/matteodelabre/orgs","repos_url":"https://api.github.com/users/matteodelabre/repos","events_url":"https://api.github.com/users/matteodelabre/events{/privacy}","received_events_url":"https://api.github.com/users/matteodelabre/received_events","type":"User","site_admin":false},"created_at":"2016-03-17T17:07:14Z","updated_at":"2016-03-17T17:07:14Z","body":"Hello @Lcfvs, I do not experience any problem using Mongoose 4.4.7.\r\nThus I do not understand why we should add the `E1100(?:0|1)` check that you suggest to add in the regex. I try to keep that regex as lightweight as possible to avoid breaking between Mongoose's versions.  There are some problems with the current regex that are going to be fixed with #14."}}