{"action":"created","issue":{"url":"https://api.github.com/repos/select2/select2/issues/3618","labels_url":"https://api.github.com/repos/select2/select2/issues/3618/labels{/name}","comments_url":"https://api.github.com/repos/select2/select2/issues/3618/comments","events_url":"https://api.github.com/repos/select2/select2/issues/3618/events","html_url":"https://github.com/select2/select2/issues/3618","id":97671070,"number":3618,"title":"Error when form name with [] array","user":{"login":"nurmanhabib","id":5308494,"avatar_url":"https://avatars.githubusercontent.com/u/5308494?v=3","gravatar_id":"","url":"https://api.github.com/users/nurmanhabib","html_url":"https://github.com/nurmanhabib","followers_url":"https://api.github.com/users/nurmanhabib/followers","following_url":"https://api.github.com/users/nurmanhabib/following{/other_user}","gists_url":"https://api.github.com/users/nurmanhabib/gists{/gist_id}","starred_url":"https://api.github.com/users/nurmanhabib/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nurmanhabib/subscriptions","organizations_url":"https://api.github.com/users/nurmanhabib/orgs","repos_url":"https://api.github.com/users/nurmanhabib/repos","events_url":"https://api.github.com/users/nurmanhabib/events{/privacy}","received_events_url":"https://api.github.com/users/nurmanhabib/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/select2/select2/labels/needs%20information","name":"needs information","color":"bfe5bf"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-07-28T10:33:14Z","updated_at":"2015-12-14T13:22:45Z","closed_at":null,"body":"For example I created a form select using [] array.\r\n```\r\n<select name=\"kunjungan[temp-0][details][1][details]\" class=\"form-control select2\">\r\n    <option value=\"somevalue\">Some Value</option>\r\n    <option value=\"othervalue\">OtherValue</option>\r\n</select>\r\n```\r\nThen I initialization select()\r\n```\r\n$('.select2').select()\r\n```\r\n\r\nthen when I observed on the web browser console, an error occurs.\r\n```\r\nSyntaxError: invalid range in character class\r\n```\r\nI tried to eliminate the name without the array. The results are normal.\r\n```\r\n<select name=\"kunjungan_temp-0_details_1_details\" class=\"form-control select2\">\r\n    <option value=\"somevalue\">Some Value</option>\r\n    <option value=\"othervalue\">OtherValue</option>\r\n</select>\r\n```"},"comment":{"url":"https://api.github.com/repos/select2/select2/issues/comments/164434993","html_url":"https://github.com/select2/select2/issues/3618#issuecomment-164434993","issue_url":"https://api.github.com/repos/select2/select2/issues/3618","id":164434993,"user":{"login":"Max-Might","id":119780,"avatar_url":"https://avatars.githubusercontent.com/u/119780?v=3","gravatar_id":"","url":"https://api.github.com/users/Max-Might","html_url":"https://github.com/Max-Might","followers_url":"https://api.github.com/users/Max-Might/followers","following_url":"https://api.github.com/users/Max-Might/following{/other_user}","gists_url":"https://api.github.com/users/Max-Might/gists{/gist_id}","starred_url":"https://api.github.com/users/Max-Might/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Max-Might/subscriptions","organizations_url":"https://api.github.com/users/Max-Might/orgs","repos_url":"https://api.github.com/users/Max-Might/repos","events_url":"https://api.github.com/users/Max-Might/events{/privacy}","received_events_url":"https://api.github.com/users/Max-Might/received_events","type":"User","site_admin":false},"created_at":"2015-12-14T13:22:45Z","updated_at":"2015-12-14T13:22:45Z","body":"I get the same error with Select2 4.0.1 and jQuery 2.1.4\r\nThe error happens always when selecting a value from a drop-down.\r\n\r\nTested with browsers Firefox 42 and Opera 34."}}