{"action":"opened","issue":{"url":"https://api.github.com/repos/mitodl/lore/issues/903","repository_url":"https://api.github.com/repos/mitodl/lore","labels_url":"https://api.github.com/repos/mitodl/lore/issues/903/labels{/name}","comments_url":"https://api.github.com/repos/mitodl/lore/issues/903/comments","events_url":"https://api.github.com/repos/mitodl/lore/issues/903/events","html_url":"https://github.com/mitodl/lore/issues/903","id":143222164,"number":903,"title":"With vocabulary name like ``(((()`` in learning resource panel do not show warning message when user try to close it without saving.","user":{"login":"amir-qayyum-khan","id":10431250,"avatar_url":"https://avatars.githubusercontent.com/u/10431250?v=3","gravatar_id":"","url":"https://api.github.com/users/amir-qayyum-khan","html_url":"https://github.com/amir-qayyum-khan","followers_url":"https://api.github.com/users/amir-qayyum-khan/followers","following_url":"https://api.github.com/users/amir-qayyum-khan/following{/other_user}","gists_url":"https://api.github.com/users/amir-qayyum-khan/gists{/gist_id}","starred_url":"https://api.github.com/users/amir-qayyum-khan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amir-qayyum-khan/subscriptions","organizations_url":"https://api.github.com/users/amir-qayyum-khan/orgs","repos_url":"https://api.github.com/users/amir-qayyum-khan/repos","events_url":"https://api.github.com/users/amir-qayyum-khan/events{/privacy}","received_events_url":"https://api.github.com/users/amir-qayyum-khan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-24T11:30:07Z","updated_at":"2016-03-24T11:30:07Z","closed_at":null,"body":"##### Use case:\r\n\r\n- If users creates a vocabulary with name like ``(((()``.\r\n- And Inside learning resource panel if he choose this vocabulary and then choose one of its terms.\r\n- And try to close panel without saving data.\r\n\r\n**Expected behaviour:**\r\n- It should show a warning alert and ask user to save date.\r\n\r\n**Actual behaviour:**\r\n- Learning resource panel exit without any warning.\r\n- On console found error:\r\n``jquery.js:4224 Uncaught SyntaxError: Invalid regular expression: /(^|\\.)select2\\.(?:.*\\.|)select2-term-()(((()(\\.|$)/: Unterminated group``\r\n- It seems issue is with regular expression some where.\r\n \r\n"}}