{"action":"created","comment":{"url":"https://api.github.com/repos/code-squad/javascript-todo/pulls/comments/176624562","pull_request_review_id":106362310,"id":176624562,"diff_hunk":"@@ -0,0 +1,206 @@\n+// reg = new RegExp(\"^[\\\\w\\\\-]+(\\\\.[\\\\w\\\\-_]+)*@[\\\\w\\\\-]+(\\\\.[\\\\w\\\\-]+)*(\\\\.[a-zA-Z]{2,3})$\", \"gi\");\n+// var re = new RegExp(\"ab+c\");\n+// 정규표현식 없이 .split() 구현 or 정규표현식! \n+// let result = target.match(r)\n+// JS에서 enum바로 true False로 체크해주는 거 있으면 좋겠다. 못 찾은 걸 수도 \n+const enumCheck = (checkData, enumData) => {\n+    return !!Object.values(checkData).filter(item => item === enumData).length;\n+}\n+const notNumber = number => isNaN(Number(number))\n+\n+const command = (function () {\n+    const Actions = {\n+        Add: 'add',\n+        Show: 'show',\n+        Update: 'update',\n+    }\n+    const State = {\n+        Todo: 'todo',\n+        Doing: 'doing',\n+        Done: 'done',\n+    }\n+    const todos = {};\n+    let id = 0;\n+\n+    const printType = {\n+        Filter: \"filter\",\n+        Add: \"add\",\n+    }\n+    const errMsg = {\n+        addWrongState: 'to do 볼 수 있는 상태는  todo, dpoing, done 중 하나입니다. ex) add$공부',\n+        updateWrongState: 'update할 수 있는 상태는  todo, dpoing, update 중 하나입니다. ex) update$1$done',\n+        notNumber: 'id 값은 숫자여야 합니다.  ex) update$1$done',\n+        notHaveThisId: '해당 id 값이 없습니다'\n+    }\n+    const stateCounter = {\n+        todo: 0,\n+        doing: 0,\n+        done: 0,\n+    }\n+    const controller = function (order) {\n+\n+        const compileOrder = function (order) {\n+\n+            const [first, second, last] = order.split('$');","path":"todo/index.js","position":44,"original_position":44,"commit_id":"aed40357a57d7e424d7aa7852fe77cd33ed251bc","original_commit_id":"aed40357a57d7e424d7aa7852fe77cd33ed251bc","user":{"login":"nigayo","id":1456761,"avatar_url":"https://avatars2.githubusercontent.com/u/1456761?v=4","gravatar_id":"","url":"https://api.github.com/users/nigayo","html_url":"https://github.com/nigayo","followers_url":"https://api.github.com/users/nigayo/followers","following_url":"https://api.github.com/users/nigayo/following{/other_user}","gists_url":"https://api.github.com/users/nigayo/gists{/gist_id}","starred_url":"https://api.github.com/users/nigayo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nigayo/subscriptions","organizations_url":"https://api.github.com/users/nigayo/orgs","repos_url":"https://api.github.com/users/nigayo/repos","events_url":"https://api.github.com/users/nigayo/events{/privacy}","received_events_url":"https://api.github.com/users/nigayo/received_events","type":"User","site_admin":false},"body":"음 좀 어렵군요.\r\n\r\n슬랙방에 제가 아침에 공유한 내용을 한번 참고하실래요? ","created_at":"2018-03-23T02:27:24Z","updated_at":"2018-03-23T02:27:24Z","html_url":"https://github.com/code-squad/javascript-todo/pull/13#discussion_r176624562","pull_request_url":"https://api.github.com/repos/code-squad/javascript-todo/pulls/13","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/code-squad/javascript-todo/pulls/comments/176624562"},"html":{"href":"https://github.com/code-squad/javascript-todo/pull/13#discussion_r176624562"},"pull_request":{"href":"https://api.github.com/repos/code-squad/javascript-todo/pulls/13"}},"in_reply_to_id":176341252},"pull_request":{"url":"https://api.github.com/repos/code-squad/javascript-todo/pulls/13","id":176421199,"html_url":"https://github.com/code-squad/javascript-todo/pull/13","diff_url":"https://github.com/code-squad/javascript-todo/pull/13.diff","patch_url":"https://github.com/code-squad/javascript-todo/pull/13.patch","issue_url":"https://api.github.com/repos/code-squad/javascript-todo/issues/13","number":13,"state":"open","locked":false,"title":"todoList 기본 기능 구현까지 :D ","user":{"login":"amorfati0310","id":25189066,"avatar_url":"https://avatars1.githubusercontent.com/u/25189066?v=4","gravatar_id":"","url":"https://api.github.com/users/amorfati0310","html_url":"https://github.com/amorfati0310","followers_url":"https://api.github.com/users/amorfati0310/followers","following_url":"https://api.github.com/users/amorfati0310/following{/other_user}","gists_url":"https://api.github.com/users/amorfati0310/gists{/gist_id}","starred_url":"https://api.github.com/users/amorfati0310/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amorfati0310/subscriptions","organizations_url":"https://api.github.com/users/amorfati0310/orgs","repos_url":"https://api.github.com/users/amorfati0310/repos","events_url":"https://api.github.com/users/amorfati0310/events{/privacy}","received_events_url":"https://api.github.com/users/amorfati0310/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-03-21T09:39:55Z","updated_at":"2018-03-23T02:27:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9fbb641bcff0997ee5999629b6b70259c9c602fb","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/code-squad/javascript-todo/pulls/13/commits","review_comments_url":"https://api.github.com/repos/code-squad/javascript-todo/pulls/13/comments","review_comment_url":"https://api.github.com/repos/code-squad/javascript-todo/pulls/comments{/number}","comments_url":"https://api.github.com/repos/code-squad/javascript-todo/issues/13/comments","statuses_url":"https://api.github.com/repos/code-squad/javascript-todo/statuses/aed40357a57d7e424d7aa7852fe77cd33ed251bc","head":{"label":"amorfati0310:amorfati0310","ref":"amorfati0310","sha":"aed40357a57d7e424d7aa7852fe77cd33ed251bc","user":{"login":"amorfati0310","id":25189066,"avatar_url":"https://avatars1.githubusercontent.com/u/25189066?v=4","gravatar_id":"","url":"https://api.github.com/users/amorfati0310","html_url":"https://github.com/amorfati0310","followers_url":"https://api.github.com/users/amorfati0310/followers","following_url":"https://api.github.com/users/amorfati0310/following{/other_user}","gists_url":"https://api.github.com/users/amorfati0310/gists{/gist_id}","starred_url":"https://api.github.com/users/amorfati0310/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amorfati0310/subscriptions","organizations_url":"https://api.github.com/users/amorfati0310/orgs","repos_url":"https://api.github.com/users/amorfati0310/repos","events_url":"https://api.github.com/users/amorfati0310/events{/privacy}","received_events_url":"https://api.github.com/users/amorfati0310/received_events","type":"User","site_admin":false},"repo":{"id":125481330,"name":"javascript-todo","full_name":"amorfati0310/javascript-todo","owner":{"login":"amorfati0310","id":25189066,"avatar_url":"https://avatars1.githubusercontent.com/u/25189066?v=4","gravatar_id":"","url":"https://api.github.com/users/amorfati0310","html_url":"https://github.com/amorfati0310","followers_url":"https://api.github.com/users/amorfati0310/followers","following_url":"https://api.github.com/users/amorfati0310/following{/other_user}","gists_url":"https://api.github.com/users/amorfati0310/gists{/gist_id}","starred_url":"https://api.github.com/users/amorfati0310/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amorfati0310/subscriptions","organizations_url":"https://api.github.com/users/amorfati0310/orgs","repos_url":"https://api.github.com/users/amorfati0310/repos","events_url":"https://api.github.com/users/amorfati0310/events{/privacy}","received_events_url":"https://api.github.com/users/amorfati0310/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/amorfati0310/javascript-todo","description":"레벨2","fork":true,"url":"https://api.github.com/repos/amorfati0310/javascript-todo","forks_url":"https://api.github.com/repos/amorfati0310/javascript-todo/forks","keys_url":"https://api.github.com/repos/amorfati0310/javascript-todo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/amorfati0310/javascript-todo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/amorfati0310/javascript-todo/teams","hooks_url":"https://api.github.com/repos/amorfati0310/javascript-todo/hooks","issue_events_url":"https://api.github.com/repos/amorfati0310/javascript-todo/issues/events{/number}","events_url":"https://api.github.com/repos/amorfati0310/javascript-todo/events","assignees_url":"https://api.github.com/repos/amorfati0310/javascript-todo/assignees{/user}","branches_url":"https://api.github.com/repos/amorfati0310/javascript-todo/branches{/branch}","tags_url":"https://api.github.com/repos/amorfati0310/javascript-todo/tags","blobs_url":"https://api.github.com/repos/amorfati0310/javascript-todo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/amorfati0310/javascript-todo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/amorfati0310/javascript-todo/git/refs{/sha}","trees_url":"https://api.github.com/repos/amorfati0310/javascript-todo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/amorfati0310/javascript-todo/statuses/{sha}","languages_url":"https://api.github.com/repos/amorfati0310/javascript-todo/languages","stargazers_url":"https://api.github.com/repos/amorfati0310/javascript-todo/stargazers","contributors_url":"https://api.github.com/repos/amorfati0310/javascript-todo/contributors","subscribers_url":"https://api.github.com/repos/amorfati0310/javascript-todo/subscribers","subscription_url":"https://api.github.com/repos/amorfati0310/javascript-todo/subscription","commits_url":"https://api.github.com/repos/amorfati0310/javascript-todo/commits{/sha}","git_commits_url":"https://api.github.com/repos/amorfati0310/javascript-todo/git/commits{/sha}","comments_url":"https://api.github.com/repos/amorfati0310/javascript-todo/comments{/number}","issue_comment_url":"https://api.github.com/repos/amorfati0310/javascript-todo/issues/comments{/number}","contents_url":"https://api.github.com/repos/amorfati0310/javascript-todo/contents/{+path}","compare_url":"https://api.github.com/repos/amorfati0310/javascript-todo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/amorfati0310/javascript-todo/merges","archive_url":"https://api.github.com/repos/amorfati0310/javascript-todo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/amorfati0310/javascript-todo/downloads","issues_url":"https://api.github.com/repos/amorfati0310/javascript-todo/issues{/number}","pulls_url":"https://api.github.com/repos/amorfati0310/javascript-todo/pulls{/number}","milestones_url":"https://api.github.com/repos/amorfati0310/javascript-todo/milestones{/number}","notifications_url":"https://api.github.com/repos/amorfati0310/javascript-todo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/amorfati0310/javascript-todo/labels{/name}","releases_url":"https://api.github.com/repos/amorfati0310/javascript-todo/releases{/id}","deployments_url":"https://api.github.com/repos/amorfati0310/javascript-todo/deployments","created_at":"2018-03-16T07:42:46Z","updated_at":"2018-03-16T07:42:47Z","pushed_at":"2018-03-21T09:56:31Z","git_url":"git://github.com/amorfati0310/javascript-todo.git","ssh_url":"git@github.com:amorfati0310/javascript-todo.git","clone_url":"https://github.com/amorfati0310/javascript-todo.git","svn_url":"https://github.com/amorfati0310/javascript-todo","homepage":null,"size":647,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"code-squad:amorfati0310","ref":"amorfati0310","sha":"94225011c9ae257bbe4a1467ad8f9f0ba2f518d5","user":{"login":"code-squad","id":22832280,"avatar_url":"https://avatars2.githubusercontent.com/u/22832280?v=4","gravatar_id":"","url":"https://api.github.com/users/code-squad","html_url":"https://github.com/code-squad","followers_url":"https://api.github.com/users/code-squad/followers","following_url":"https://api.github.com/users/code-squad/following{/other_user}","gists_url":"https://api.github.com/users/code-squad/gists{/gist_id}","starred_url":"https://api.github.com/users/code-squad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/code-squad/subscriptions","organizations_url":"https://api.github.com/users/code-squad/orgs","repos_url":"https://api.github.com/users/code-squad/repos","events_url":"https://api.github.com/users/code-squad/events{/privacy}","received_events_url":"https://api.github.com/users/code-squad/received_events","type":"Organization","site_admin":false},"repo":{"id":107917645,"name":"javascript-todo","full_name":"code-squad/javascript-todo","owner":{"login":"code-squad","id":22832280,"avatar_url":"https://avatars2.githubusercontent.com/u/22832280?v=4","gravatar_id":"","url":"https://api.github.com/users/code-squad","html_url":"https://github.com/code-squad","followers_url":"https://api.github.com/users/code-squad/followers","following_url":"https://api.github.com/users/code-squad/following{/other_user}","gists_url":"https://api.github.com/users/code-squad/gists{/gist_id}","starred_url":"https://api.github.com/users/code-squad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/code-squad/subscriptions","organizations_url":"https://api.github.com/users/code-squad/orgs","repos_url":"https://api.github.com/users/code-squad/repos","events_url":"https://api.github.com/users/code-squad/events{/privacy}","received_events_url":"https://api.github.com/users/code-squad/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/code-squad/javascript-todo","description":"레벨2","fork":false,"url":"https://api.github.com/repos/code-squad/javascript-todo","forks_url":"https://api.github.com/repos/code-squad/javascript-todo/forks","keys_url":"https://api.github.com/repos/code-squad/javascript-todo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/code-squad/javascript-todo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/code-squad/javascript-todo/teams","hooks_url":"https://api.github.com/repos/code-squad/javascript-todo/hooks","issue_events_url":"https://api.github.com/repos/code-squad/javascript-todo/issues/events{/number}","events_url":"https://api.github.com/repos/code-squad/javascript-todo/events","assignees_url":"https://api.github.com/repos/code-squad/javascript-todo/assignees{/user}","branches_url":"https://api.github.com/repos/code-squad/javascript-todo/branches{/branch}","tags_url":"https://api.github.com/repos/code-squad/javascript-todo/tags","blobs_url":"https://api.github.com/repos/code-squad/javascript-todo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/code-squad/javascript-todo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/code-squad/javascript-todo/git/refs{/sha}","trees_url":"https://api.github.com/repos/code-squad/javascript-todo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/code-squad/javascript-todo/statuses/{sha}","languages_url":"https://api.github.com/repos/code-squad/javascript-todo/languages","stargazers_url":"https://api.github.com/repos/code-squad/javascript-todo/stargazers","contributors_url":"https://api.github.com/repos/code-squad/javascript-todo/contributors","subscribers_url":"https://api.github.com/repos/code-squad/javascript-todo/subscribers","subscription_url":"https://api.github.com/repos/code-squad/javascript-todo/subscription","commits_url":"https://api.github.com/repos/code-squad/javascript-todo/commits{/sha}","git_commits_url":"https://api.github.com/repos/code-squad/javascript-todo/git/commits{/sha}","comments_url":"https://api.github.com/repos/code-squad/javascript-todo/comments{/number}","issue_comment_url":"https://api.github.com/repos/code-squad/javascript-todo/issues/comments{/number}","contents_url":"https://api.github.com/repos/code-squad/javascript-todo/contents/{+path}","compare_url":"https://api.github.com/repos/code-squad/javascript-todo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/code-squad/javascript-todo/merges","archive_url":"https://api.github.com/repos/code-squad/javascript-todo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/code-squad/javascript-todo/downloads","issues_url":"https://api.github.com/repos/code-squad/javascript-todo/issues{/number}","pulls_url":"https://api.github.com/repos/code-squad/javascript-todo/pulls{/number}","milestones_url":"https://api.github.com/repos/code-squad/javascript-todo/milestones{/number}","notifications_url":"https://api.github.com/repos/code-squad/javascript-todo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/code-squad/javascript-todo/labels{/name}","releases_url":"https://api.github.com/repos/code-squad/javascript-todo/releases{/id}","deployments_url":"https://api.github.com/repos/code-squad/javascript-todo/deployments","created_at":"2017-10-23T01:26:45Z","updated_at":"2017-10-23T01:28:20Z","pushed_at":"2018-03-21T09:56:32Z","git_url":"git://github.com/code-squad/javascript-todo.git","ssh_url":"git@github.com:code-squad/javascript-todo.git","clone_url":"https://github.com/code-squad/javascript-todo.git","svn_url":"https://github.com/code-squad/javascript-todo","homepage":null,"size":640,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":10,"mirror_url":null,"archived":false,"open_issues_count":3,"license":null,"forks":10,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/code-squad/javascript-todo/pulls/13"},"html":{"href":"https://github.com/code-squad/javascript-todo/pull/13"},"issue":{"href":"https://api.github.com/repos/code-squad/javascript-todo/issues/13"},"comments":{"href":"https://api.github.com/repos/code-squad/javascript-todo/issues/13/comments"},"review_comments":{"href":"https://api.github.com/repos/code-squad/javascript-todo/pulls/13/comments"},"review_comment":{"href":"https://api.github.com/repos/code-squad/javascript-todo/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/code-squad/javascript-todo/pulls/13/commits"},"statuses":{"href":"https://api.github.com/repos/code-squad/javascript-todo/statuses/aed40357a57d7e424d7aa7852fe77cd33ed251bc"}},"author_association":"NONE"}}
{"actor":{"display_login":"nigayo"}}