{"action":"closed","issue":{"url":"https://api.github.com/repos/victorjonsson/jQuery-Form-Validator/issues/140","labels_url":"https://api.github.com/repos/victorjonsson/jQuery-Form-Validator/issues/140/labels{/name}","comments_url":"https://api.github.com/repos/victorjonsson/jQuery-Form-Validator/issues/140/comments","events_url":"https://api.github.com/repos/victorjonsson/jQuery-Form-Validator/issues/140/events","html_url":"https://github.com/victorjonsson/jQuery-Form-Validator/issues/140","id":33669628,"number":140,"title":"Validation strings with leading or trailing whitespace","user":{"login":"ivKoronaLiftProg4","id":7602437,"avatar_url":"https://avatars.githubusercontent.com/u/7602437?v=3","gravatar_id":"","url":"https://api.github.com/users/ivKoronaLiftProg4","html_url":"https://github.com/ivKoronaLiftProg4","followers_url":"https://api.github.com/users/ivKoronaLiftProg4/followers","following_url":"https://api.github.com/users/ivKoronaLiftProg4/following{/other_user}","gists_url":"https://api.github.com/users/ivKoronaLiftProg4/gists{/gist_id}","starred_url":"https://api.github.com/users/ivKoronaLiftProg4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ivKoronaLiftProg4/subscriptions","organizations_url":"https://api.github.com/users/ivKoronaLiftProg4/orgs","repos_url":"https://api.github.com/users/ivKoronaLiftProg4/repos","events_url":"https://api.github.com/users/ivKoronaLiftProg4/events{/privacy}","received_events_url":"https://api.github.com/users/ivKoronaLiftProg4/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/victorjonsson/jQuery-Form-Validator/labels/Bug","name":"Bug","color":"e10c02"},{"url":"https://api.github.com/repos/victorjonsson/jQuery-Form-Validator/labels/Fixed%20in%20next%20release","name":"Fixed in next release","color":"006b75"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/victorjonsson/jQuery-Form-Validator/milestones/1","html_url":"https://github.com/victorjonsson/jQuery-Form-Validator/milestones/2.2.0","labels_url":"https://api.github.com/repos/victorjonsson/jQuery-Form-Validator/milestones/1/labels","id":699797,"number":1,"title":"2.2.0","description":"Main features:\r\n\r\n- Credit card validation\r\n- Support for native HTML5 validation ","creator":{"login":"victorjonsson","id":429182,"avatar_url":"https://avatars.githubusercontent.com/u/429182?v=3","gravatar_id":"","url":"https://api.github.com/users/victorjonsson","html_url":"https://github.com/victorjonsson","followers_url":"https://api.github.com/users/victorjonsson/followers","following_url":"https://api.github.com/users/victorjonsson/following{/other_user}","gists_url":"https://api.github.com/users/victorjonsson/gists{/gist_id}","starred_url":"https://api.github.com/users/victorjonsson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/victorjonsson/subscriptions","organizations_url":"https://api.github.com/users/victorjonsson/orgs","repos_url":"https://api.github.com/users/victorjonsson/repos","events_url":"https://api.github.com/users/victorjonsson/events{/privacy}","received_events_url":"https://api.github.com/users/victorjonsson/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":27,"state":"open","created_at":"2014-06-24T10:28:46Z","updated_at":"2015-04-28T20:38:09Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2014-05-16T12:13:31Z","updated_at":"2015-04-28T20:38:08Z","closed_at":"2015-04-28T20:38:08Z","body":"Strings with leading or trailing whitespace are pass validation.\r\nSuch behavior is present on all inputs. Even on input with custom regexp, for example, data-validation-regexp=\"^(\\w+)$\".\r\nThis is your demo:\r\n![demo](https://cloud.githubusercontent.com/assets/7602437/2996625/2401c096-dcf3-11e3-8ae6-ca3a2fd88ac2.png)\r\nAnd this is my input with data-validation=\"custom\" data-validation-regexp=\"^(\\w+)$\":\r\n![customregexp](https://cloud.githubusercontent.com/assets/7602437/2996637/5788dc56-dcf3-11e3-897a-2d6f188c3572.png)\r\n"}}