{"action":"created","issue":{"url":"https://api.github.com/repos/thednp/bootstrap.native/issues/54","repository_url":"https://api.github.com/repos/thednp/bootstrap.native","labels_url":"https://api.github.com/repos/thednp/bootstrap.native/issues/54/labels{/name}","comments_url":"https://api.github.com/repos/thednp/bootstrap.native/issues/54/comments","events_url":"https://api.github.com/repos/thednp/bootstrap.native/issues/54/events","html_url":"https://github.com/thednp/bootstrap.native/issues/54","id":149937525,"number":54,"title":"Any instance of the string 'in' in a collapse's class attribute breaks Collapse","user":{"login":"lcannon","id":4850712,"avatar_url":"https://avatars.githubusercontent.com/u/4850712?v=3","gravatar_id":"","url":"https://api.github.com/users/lcannon","html_url":"https://github.com/lcannon","followers_url":"https://api.github.com/users/lcannon/followers","following_url":"https://api.github.com/users/lcannon/following{/other_user}","gists_url":"https://api.github.com/users/lcannon/gists{/gist_id}","starred_url":"https://api.github.com/users/lcannon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lcannon/subscriptions","organizations_url":"https://api.github.com/users/lcannon/orgs","repos_url":"https://api.github.com/users/lcannon/repos","events_url":"https://api.github.com/users/lcannon/events{/privacy}","received_events_url":"https://api.github.com/users/lcannon/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-04-21T02:03:47Z","updated_at":"2016-04-21T23:05:33Z","closed_at":null,"body":"Presumably this would be fixed by changing the regex to match `/\\bin\\b/` instead of `/in/` in the toggle function."},"comment":{"url":"https://api.github.com/repos/thednp/bootstrap.native/issues/comments/213153054","html_url":"https://github.com/thednp/bootstrap.native/issues/54#issuecomment-213153054","issue_url":"https://api.github.com/repos/thednp/bootstrap.native/issues/54","id":213153054,"user":{"login":"lcannon","id":4850712,"avatar_url":"https://avatars.githubusercontent.com/u/4850712?v=3","gravatar_id":"","url":"https://api.github.com/users/lcannon","html_url":"https://github.com/lcannon","followers_url":"https://api.github.com/users/lcannon/followers","following_url":"https://api.github.com/users/lcannon/following{/other_user}","gists_url":"https://api.github.com/users/lcannon/gists{/gist_id}","starred_url":"https://api.github.com/users/lcannon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lcannon/subscriptions","organizations_url":"https://api.github.com/users/lcannon/orgs","repos_url":"https://api.github.com/users/lcannon/repos","events_url":"https://api.github.com/users/lcannon/events{/privacy}","received_events_url":"https://api.github.com/users/lcannon/received_events","type":"User","site_admin":false},"created_at":"2016-04-21T23:05:33Z","updated_at":"2016-04-21T23:05:33Z","body":"Sure. The situation that brought this up was a collapse\r\n\r\n`<button type=\"button\" class=\"navbar-toggle\" data-toggle=\"collapse\" data-target=\".navbar-warning-collapse\">`\r\n\r\nthat targeted this\r\n\r\n```\r\n<div class=\"navbar-collapse collapse navbar-warning-collapse\">\r\n    ...\r\n</div>\r\n```\r\n\r\nBecause `/in/` matches against 'navbar-warning-collapse' the toggle method always tries to close the collapse."}}