{"action":"closed","issue":{"url":"https://api.github.com/repos/moment/moment/issues/2861","labels_url":"https://api.github.com/repos/moment/moment/issues/2861/labels{/name}","comments_url":"https://api.github.com/repos/moment/moment/issues/2861/comments","events_url":"https://api.github.com/repos/moment/moment/issues/2861/events","html_url":"https://github.com/moment/moment/issues/2861","id":124837438,"number":2861,"title":"Incorrect moment validation on 2.11.0","user":{"login":"MarshallOfSound","id":6634592,"avatar_url":"https://avatars.githubusercontent.com/u/6634592?v=3","gravatar_id":"","url":"https://api.github.com/users/MarshallOfSound","html_url":"https://github.com/MarshallOfSound","followers_url":"https://api.github.com/users/MarshallOfSound/followers","following_url":"https://api.github.com/users/MarshallOfSound/following{/other_user}","gists_url":"https://api.github.com/users/MarshallOfSound/gists{/gist_id}","starred_url":"https://api.github.com/users/MarshallOfSound/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MarshallOfSound/subscriptions","organizations_url":"https://api.github.com/users/MarshallOfSound/orgs","repos_url":"https://api.github.com/users/MarshallOfSound/repos","events_url":"https://api.github.com/users/MarshallOfSound/events{/privacy}","received_events_url":"https://api.github.com/users/MarshallOfSound/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/moment/moment/labels/Bug","name":"Bug","color":"e11d21"},{"url":"https://api.github.com/repos/moment/moment/labels/High%20Priority","name":"High Priority","color":"e11d21"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/moment/moment/milestones/27","html_url":"https://github.com/moment/moment/milestones/2.11.1","labels_url":"https://api.github.com/repos/moment/moment/milestones/27/labels","id":1465655,"number":27,"title":"2.11.1","description":"","creator":{"login":"mj1856","id":1396388,"avatar_url":"https://avatars.githubusercontent.com/u/1396388?v=3","gravatar_id":"","url":"https://api.github.com/users/mj1856","html_url":"https://github.com/mj1856","followers_url":"https://api.github.com/users/mj1856/followers","following_url":"https://api.github.com/users/mj1856/following{/other_user}","gists_url":"https://api.github.com/users/mj1856/gists{/gist_id}","starred_url":"https://api.github.com/users/mj1856/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mj1856/subscriptions","organizations_url":"https://api.github.com/users/mj1856/orgs","repos_url":"https://api.github.com/users/mj1856/repos","events_url":"https://api.github.com/users/mj1856/events{/privacy}","received_events_url":"https://api.github.com/users/mj1856/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":2,"state":"open","created_at":"2015-12-17T19:48:38Z","updated_at":"2016-01-06T21:36:31Z","due_on":null,"closed_at":null},"comments":4,"created_at":"2016-01-04T20:52:51Z","updated_at":"2016-01-06T21:36:31Z","closed_at":"2016-01-06T21:36:31Z","body":"A bug has appeared in `2.11.0` regarding moment validation.  In this case a perfectly valid date is returned as invalid.\r\n\r\n```js\r\nmoment('25-May-2015', 'DD-MMM-YYYY', true).isValid() // Returns false\r\n```\r\n\r\nThis code returned `true` in 2.10.6\r\nI've only been able to replicate this issue using `MMM` as part of the date string, so possibly the bug is there"}}