{"action":"created","issue":{"url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/issues/1297","labels_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/issues/1297/labels{/name}","comments_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/issues/1297/comments","events_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/issues/1297/events","html_url":"https://github.com/FreeCodeCamp/FreeCodeCamp/issues/1297","id":95068105,"number":1297,"title":"Bonfire: Spinal Tap Case doesn't display challenge completed modal even after passing all the tests","user":{"login":"royshouvik","id":5521768,"avatar_url":"https://avatars.githubusercontent.com/u/5521768?v=3","gravatar_id":"","url":"https://api.github.com/users/royshouvik","html_url":"https://github.com/royshouvik","followers_url":"https://api.github.com/users/royshouvik/followers","following_url":"https://api.github.com/users/royshouvik/following{/other_user}","gists_url":"https://api.github.com/users/royshouvik/gists{/gist_id}","starred_url":"https://api.github.com/users/royshouvik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/royshouvik/subscriptions","organizations_url":"https://api.github.com/users/royshouvik/orgs","repos_url":"https://api.github.com/users/royshouvik/repos","events_url":"https://api.github.com/users/royshouvik/events{/privacy}","received_events_url":"https://api.github.com/users/royshouvik/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-07-14T23:43:14Z","updated_at":"2015-08-26T00:30:34Z","closed_at":null,"body":"Challenge http://www.freecodecamp.com/challenges/bonfire-spinal-tap-case has an issue. Please describe how to reproduce it, and include links to screen shots if possible.\r\n\r\nSolution Code\r\n```\r\nfunction spinalCase(str) {\r\n  // \"It's such a fine line between stupid, and clever.\"\r\n  // --David St. Hubbins\r\n  var reg1 =/\\B[A-Z][a-z]*|[a-z]+/g;\r\n  var reg2 =/\\b[A-Z][a-z]*|[a-z]+/g;\r\n  var reg3 = /\\s/g;\r\n  \r\n  if(reg3.test(str)){\r\n      //string has spaces\r\n      arr = str.match(reg2);\r\n  }\r\n  else{\r\n      arr.str.match(reg1);\r\n  }\r\n  arr.forEach(toLow);\r\n  \r\n  return arr.join(\"-\");\r\n}\r\n\r\nspinalCase('This Is Spinal Tap');\r\n\r\n\r\nfunction toLow(element, index, array){\r\n    \r\n    array[index] = element.toLowerCase();\r\n}\r\n```\r\n\r\nScreenshot\r\n![image](https://cloud.githubusercontent.com/assets/5521768/8687643/1d26e466-2ab0-11e5-8a16-32ac47e3c4e3.png)\r\n"},"comment":{"url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/issues/comments/134778353","html_url":"https://github.com/FreeCodeCamp/FreeCodeCamp/issues/1297#issuecomment-134778353","issue_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/issues/1297","id":134778353,"user":{"login":"BerkeleyTrue","id":6775919,"avatar_url":"https://avatars.githubusercontent.com/u/6775919?v=3","gravatar_id":"","url":"https://api.github.com/users/BerkeleyTrue","html_url":"https://github.com/BerkeleyTrue","followers_url":"https://api.github.com/users/BerkeleyTrue/followers","following_url":"https://api.github.com/users/BerkeleyTrue/following{/other_user}","gists_url":"https://api.github.com/users/BerkeleyTrue/gists{/gist_id}","starred_url":"https://api.github.com/users/BerkeleyTrue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BerkeleyTrue/subscriptions","organizations_url":"https://api.github.com/users/BerkeleyTrue/orgs","repos_url":"https://api.github.com/users/BerkeleyTrue/repos","events_url":"https://api.github.com/users/BerkeleyTrue/events{/privacy}","received_events_url":"https://api.github.com/users/BerkeleyTrue/received_events","type":"User","site_admin":false},"created_at":"2015-08-26T00:30:34Z","updated_at":"2015-08-26T00:30:34Z","body":"@royshouvik Is this still an issue?"}}