{"action":"closed","issue":{"url":"https://api.github.com/repos/angular-ui/ui-mask/issues/165","repository_url":"https://api.github.com/repos/angular-ui/ui-mask","labels_url":"https://api.github.com/repos/angular-ui/ui-mask/issues/165/labels{/name}","comments_url":"https://api.github.com/repos/angular-ui/ui-mask/issues/165/comments","events_url":"https://api.github.com/repos/angular-ui/ui-mask/issues/165/events","html_url":"https://github.com/angular-ui/ui-mask/issues/165","id":162973645,"number":165,"title":"doesn't work with ng-pattern","user":{"login":"phazei","id":431395,"avatar_url":"https://avatars.githubusercontent.com/u/431395?v=3","gravatar_id":"","url":"https://api.github.com/users/phazei","html_url":"https://github.com/phazei","followers_url":"https://api.github.com/users/phazei/followers","following_url":"https://api.github.com/users/phazei/following{/other_user}","gists_url":"https://api.github.com/users/phazei/gists{/gist_id}","starred_url":"https://api.github.com/users/phazei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phazei/subscriptions","organizations_url":"https://api.github.com/users/phazei/orgs","repos_url":"https://api.github.com/users/phazei/repos","events_url":"https://api.github.com/users/phazei/events{/privacy}","received_events_url":"https://api.github.com/users/phazei/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-06-29T16:45:02Z","updated_at":"2016-06-29T22:22:02Z","closed_at":"2016-06-29T22:22:02Z","body":"I have an input:\r\n\r\n`                            <input input-aurea type=\"text\" name=\"ssn\" placeholder=\"Social Security Number\"\r\n                                   ng-model=\"detail.ssn\"\r\n                                   ui-mask-placeholder\r\n                                   ui-mask=\"?999-99-9999\"\r\n                                   ng-pattern=\"/^(?!(000|666|9))\\d{3}(?!00)\\d{2}(?!0000)\\d{4}$/\"\r\n                                   validate-messages=\"{pattern:'Invalid SSN.'}\"\r\n                                   ng-required=\"true\">\r\n`\r\n\r\nIn 1.8.6 it always shows invalid ssn because the pattern is checked before the mask clears?\r\n\r\nIn 1.4.5 it actually worked just fine in all browsers except FF.  In FF, after inputting a number, it's invalid, but then unfocus, focus, unfocus and it's ok.\r\n\r\n"}}
{"actor":{"display_login":"phazei"}}