{"action":"created","issue":{"url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/issues/7235","repository_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp","labels_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/issues/7235/labels{/name}","comments_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/issues/7235/comments","events_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/issues/7235/events","html_url":"https://github.com/FreeCodeCamp/FreeCodeCamp/pull/7235","id":136235896,"number":7235,"title":"Added test to check for well-formed input element","user":{"login":"NolanChan","id":1487616,"avatar_url":"https://avatars.githubusercontent.com/u/1487616?v=3","gravatar_id":"","url":"https://api.github.com/users/NolanChan","html_url":"https://github.com/NolanChan","followers_url":"https://api.github.com/users/NolanChan/followers","following_url":"https://api.github.com/users/NolanChan/following{/other_user}","gists_url":"https://api.github.com/users/NolanChan/gists{/gist_id}","starred_url":"https://api.github.com/users/NolanChan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NolanChan/subscriptions","organizations_url":"https://api.github.com/users/NolanChan/orgs","repos_url":"https://api.github.com/users/NolanChan/repos","events_url":"https://api.github.com/users/NolanChan/events{/privacy}","received_events_url":"https://api.github.com/users/NolanChan/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/labels/QA","name":"QA","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-02-25T00:36:42Z","updated_at":"2016-02-26T02:53:04Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/pulls/7235","html_url":"https://github.com/FreeCodeCamp/FreeCodeCamp/pull/7235","diff_url":"https://github.com/FreeCodeCamp/FreeCodeCamp/pull/7235.diff","patch_url":"https://github.com/FreeCodeCamp/FreeCodeCamp/pull/7235.patch"},"body":"In challenge _Add Placeholder Text to a Text Field_\r\n\r\nadded test:\r\n\r\n`\"assert($(\\\"input[type=text]\\\").length > 0 && code.match(/URL\\\\s*\\\"\\\\s*>/g), 'message: The finished <code>input</code> element should have valid syntax.');\"` \r\nwhich validates that the input element has a proper closing bracket\r\n\r\n<img width=\"618\" alt=\"screen shot 2016-02-24 at 4 33 58 pm\" src=\"https://cloud.githubusercontent.com/assets/1487616/13305977/6f1287ac-db14-11e5-9375-b176abf3146b.png\">\r\n\r\n__npm tests pass__\r\n  total:     710\r\n  passing:   710\r\n\r\nThere seems to be many different ways of solving this problem, so I'm open to feedback. I'm not sure if this is a 'best practice' solution...\r\n\r\ncloses #7185 "},"comment":{"url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/issues/comments/189087059","html_url":"https://github.com/FreeCodeCamp/FreeCodeCamp/pull/7235#issuecomment-189087059","issue_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/issues/7235","id":189087059,"user":{"login":"ltegman","id":1381313,"avatar_url":"https://avatars.githubusercontent.com/u/1381313?v=3","gravatar_id":"","url":"https://api.github.com/users/ltegman","html_url":"https://github.com/ltegman","followers_url":"https://api.github.com/users/ltegman/followers","following_url":"https://api.github.com/users/ltegman/following{/other_user}","gists_url":"https://api.github.com/users/ltegman/gists{/gist_id}","starred_url":"https://api.github.com/users/ltegman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ltegman/subscriptions","organizations_url":"https://api.github.com/users/ltegman/orgs","repos_url":"https://api.github.com/users/ltegman/repos","events_url":"https://api.github.com/users/ltegman/events{/privacy}","received_events_url":"https://api.github.com/users/ltegman/received_events","type":"User","site_admin":false},"created_at":"2016-02-26T02:53:04Z","updated_at":"2016-02-26T02:53:04Z","body":"@NolanChan Sorry, one more thing I should have caught earlier -- it should be `/URL\\\\s*[\\\"\\\\']\\\\s*\\\\/?>/gi` to account for either single or double quotes. After that this will definitely be ready!"}}