{"action":"opened","issue":{"url":"https://api.github.com/repos/RobinHerbots/jquery.inputmask/issues/1035","labels_url":"https://api.github.com/repos/RobinHerbots/jquery.inputmask/issues/1035/labels{/name}","comments_url":"https://api.github.com/repos/RobinHerbots/jquery.inputmask/issues/1035/comments","events_url":"https://api.github.com/repos/RobinHerbots/jquery.inputmask/issues/1035/events","html_url":"https://github.com/RobinHerbots/jquery.inputmask/issues/1035","id":106583810,"number":1035,"title":"Cannot read property 'matches' of undefined","user":{"login":"pricejt","id":2791439,"avatar_url":"https://avatars.githubusercontent.com/u/2791439?v=3","gravatar_id":"","url":"https://api.github.com/users/pricejt","html_url":"https://github.com/pricejt","followers_url":"https://api.github.com/users/pricejt/followers","following_url":"https://api.github.com/users/pricejt/following{/other_user}","gists_url":"https://api.github.com/users/pricejt/gists{/gist_id}","starred_url":"https://api.github.com/users/pricejt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pricejt/subscriptions","organizations_url":"https://api.github.com/users/pricejt/orgs","repos_url":"https://api.github.com/users/pricejt/repos","events_url":"https://api.github.com/users/pricejt/events{/privacy}","received_events_url":"https://api.github.com/users/pricejt/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-09-15T15:38:58Z","updated_at":"2015-09-15T15:38:58Z","closed_at":null,"body":"I am getting this error in the console when i try to use a regular expression.  Am i doing something wrong?\r\n\r\n    var heightSelector = \"input[name$='Height']\";\r\n    var widthSelector = \"input[name$='Width']\";\r\n   \r\n    var mask = \"^\\s*(((\\d+)(\\d{2})(\\d{2}))|(([\\d.]+)'?)?[\\s-]*((\\d+)?[\\s-]*((\\d+)\\/(\\d+))?\\\"?)?)\\s*$\";\r\n\r\n    $(document).ready(function() {\r\n          if ($(heightSelector).length){\r\n\t     $(heightSelector).inputmask(mask)\r\n\t    }\r\n\tif ($(widthSelector).length){\r\n\t\t$(widthSelector).inputmask(mask);\r\n\t  } \r\n    });"}}