{"action":"closed","issue":{"url":"https://api.github.com/repos/andyjeffries/flexirest/issues/7","labels_url":"https://api.github.com/repos/andyjeffries/flexirest/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/andyjeffries/flexirest/issues/7/comments","events_url":"https://api.github.com/repos/andyjeffries/flexirest/issues/7/events","html_url":"https://github.com/andyjeffries/flexirest/issues/7","id":123817516,"number":7,"title":"Seven character numeric strings are being falsely interpreted as dates","user":{"login":"hoenth","id":62977,"avatar_url":"https://avatars.githubusercontent.com/u/62977?v=3","gravatar_id":"","url":"https://api.github.com/users/hoenth","html_url":"https://github.com/hoenth","followers_url":"https://api.github.com/users/hoenth/followers","following_url":"https://api.github.com/users/hoenth/following{/other_user}","gists_url":"https://api.github.com/users/hoenth/gists{/gist_id}","starred_url":"https://api.github.com/users/hoenth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hoenth/subscriptions","organizations_url":"https://api.github.com/users/hoenth/orgs","repos_url":"https://api.github.com/users/hoenth/repos","events_url":"https://api.github.com/users/hoenth/events{/privacy}","received_events_url":"https://api.github.com/users/hoenth/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-12-24T16:11:18Z","updated_at":"2016-01-02T14:08:38Z","closed_at":"2016-01-02T14:08:38Z","body":"When a value includes a string like \"1266126\", the regex on line 27 in Flexirest::Base is falsely interpreting it as a date, and parsing it. \r\n\r\nCould the regex be more explicit in checking date values, using a regex like the following:\r\n````regex\r\n^((19|20)\\d\\d[- \\/.](0[1-9]|1[012]|[1-9])[- \\/.](0[1-9]|[12][0-9]|3[01]|[1-9]))|((0[1-9]|1[012]|[1-9])[- \\/.](0[1-9]|[12][0-9]|3[01]|[1-9])[- \\/.](19|20)\\d\\d)$\r\n````\r\nThis requires that the string be in US or EU style, with delimiters. "}}