{"action":"opened","issue":{"url":"https://api.github.com/repos/1000hz/bootstrap-validator/issues/53","labels_url":"https://api.github.com/repos/1000hz/bootstrap-validator/issues/53/labels{/name}","comments_url":"https://api.github.com/repos/1000hz/bootstrap-validator/issues/53/comments","events_url":"https://api.github.com/repos/1000hz/bootstrap-validator/issues/53/events","html_url":"https://github.com/1000hz/bootstrap-validator/issues/53","id":55742545,"number":53,"title":"pattern validation message","user":{"login":"drosendo","id":884585,"avatar_url":"https://avatars.githubusercontent.com/u/884585?v=3","gravatar_id":"","url":"https://api.github.com/users/drosendo","html_url":"https://github.com/drosendo","followers_url":"https://api.github.com/users/drosendo/followers","following_url":"https://api.github.com/users/drosendo/following{/other_user}","gists_url":"https://api.github.com/users/drosendo/gists{/gist_id}","starred_url":"https://api.github.com/users/drosendo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drosendo/subscriptions","organizations_url":"https://api.github.com/users/drosendo/orgs","repos_url":"https://api.github.com/users/drosendo/repos","events_url":"https://api.github.com/users/drosendo/events{/privacy}","received_events_url":"https://api.github.com/users/drosendo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-01-28T11:07:36Z","updated_at":"2015-01-28T11:07:36Z","closed_at":null,"body":"FYI,\r\n\r\nAdded a validation message for pattern, dont know if it's best approach.\r\n\r\n```\r\nif (key == 'native' && $el.attr('pattern').length > 0)\r\n    key = 'pattern';\r\n```\r\n\r\nNow i can run\r\n```\r\n $('form').validator({\r\n                delay: 500,\r\n                html: false,\r\n                errors: {\r\n                    pattern: \"Not valid pattern\",\r\n                    match: 'Dont match',\r\n                    minlength: 'lalalala'\r\n                }\r\n            });\r\n```\r\n\r\nAt least this methd can be applied to more attributes...\r\n\r\nWait for feedback."}}