{"action":"created","issue":{"url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/issues/11456","repository_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp","labels_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/issues/11456/labels{/name}","comments_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/issues/11456/comments","events_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/issues/11456/events","html_url":"https://github.com/FreeCodeCamp/FreeCodeCamp/issues/11456","id":186124395,"number":11456,"title":"Use AST traversal for challenge tests involving javascript","user":{"login":"sammoorhouse","id":851408,"avatar_url":"https://avatars.githubusercontent.com/u/851408?v=3","gravatar_id":"","url":"https://api.github.com/users/sammoorhouse","html_url":"https://github.com/sammoorhouse","followers_url":"https://api.github.com/users/sammoorhouse/followers","following_url":"https://api.github.com/users/sammoorhouse/following{/other_user}","gists_url":"https://api.github.com/users/sammoorhouse/gists{/gist_id}","starred_url":"https://api.github.com/users/sammoorhouse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sammoorhouse/subscriptions","organizations_url":"https://api.github.com/users/sammoorhouse/orgs","repos_url":"https://api.github.com/users/sammoorhouse/repos","events_url":"https://api.github.com/users/sammoorhouse/events{/privacy}","received_events_url":"https://api.github.com/users/sammoorhouse/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2016-10-30T08:46:32Z","updated_at":"2016-10-31T17:53:59Z","closed_at":"2016-10-31T17:53:59Z","body":"#### Challenge Name\n\ne.g. [Comparisons with the logical AND operator](https://www.freecodecamp.com/challenges/comparisons-with-the-logical-and-operator)\n#### Issue Description\n\nSome challenge tests rely on Regular Expressions to make assertions about client-submitted code.\n\nFor example, in basic-javascript.json:3389 - \n\n`\"assert(code.match(/if/g).length === 1, 'message: You should only have one <code>if</code> statement');\",`\n\nThis will match the characters \"if\" anywhere in the code - in single and multiline comments, strings,  variable names etc. \n\nInstead of using Regular Expressions, we should instead parse the Javascript using tools like [Esprima](http://esprima.org/) and [Estraverse](https://github.com/estools/estraverse).\n"},"comment":{"url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/issues/comments/257368544","html_url":"https://github.com/FreeCodeCamp/FreeCodeCamp/issues/11456#issuecomment-257368544","issue_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/issues/11456","id":257368544,"user":{"login":"sammoorhouse","id":851408,"avatar_url":"https://avatars.githubusercontent.com/u/851408?v=3","gravatar_id":"","url":"https://api.github.com/users/sammoorhouse","html_url":"https://github.com/sammoorhouse","followers_url":"https://api.github.com/users/sammoorhouse/followers","following_url":"https://api.github.com/users/sammoorhouse/following{/other_user}","gists_url":"https://api.github.com/users/sammoorhouse/gists{/gist_id}","starred_url":"https://api.github.com/users/sammoorhouse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sammoorhouse/subscriptions","organizations_url":"https://api.github.com/users/sammoorhouse/orgs","repos_url":"https://api.github.com/users/sammoorhouse/repos","events_url":"https://api.github.com/users/sammoorhouse/events{/privacy}","received_events_url":"https://api.github.com/users/sammoorhouse/received_events","type":"User","site_admin":false},"created_at":"2016-10-31T17:53:59Z","updated_at":"2016-10-31T17:53:59Z","body":"Right! I'll close this and take a look at the curriculum. Cheers :)"}}
{"actor":{"display_login":"sammoorhouse"}}