{"action":"created","comment":{"url":"https://api.github.com/repos/urfu-2015/javascript-tasks-2/pulls/comments/41260730","id":41260730,"diff_hunk":"@@ -1 +1,94 @@\n-# javascript-tasks-2\n+# Задача к лекции «Основы Javascript» – «Телефонная книга»\n+\n+:sos: [Как создать Pull Request](https://github.com/urfu-2015/guides/blob/master/how-to-pull-request.md)  \n+:warning: При создании PullRequest'а не забудьте указать ваши имя и фамилию.\n+\n+### Общие требования\n+\n+Мы очень хотим, чтобы код вы написали сами, а не пользовались внешними библиотеками.\n+\n+Прежде чем отправлять решение проверьте его на соответствие общим требованиям:\n+https://github.com/urfu-2015/guides/blob/master/js-codestyle.md.\n+\n+А также на соответствие codestyle. Для этого в корне выполните:\n+\n+```js\n+// Устанавливаем проверяльщик\n+npm install\n+\n+// Проверяем\n+npm run lint\n+\n+// В результате выведутся ошибки, если они есть\n+// Если какие-либо ошибки будут непонятны – смело спрашиваем у ментора\n+```\n+\n+### Задача\n+\n+Как известно, каждый уважающий себя разработчик должен в жизни сделать три вещи:\n+посадить DOM дерево, построить абстракцию и ~~вырастить~~ написать телефонную книгу.\n+\n+В репозитории, изнемогая от нетерпения, вас ожидают два файла:\n+\n+- __phone-book.js__ – здесь будет ваш код. В нём 4 метода, которые вы должны реализовать:\n+    - `add` – добавляет запись в телефонную книгу, если какое-либо из полей не валидно,\n+      то запись не добавляется;  \n+\n+       Примеры номеров:\n+       ```text\n+       // Валидные\n+       +7 (111) 777-2-222\n+       +7 (111) 777 2 222\n+       +7 111 777-2-222\n+       7 111 777-2-222\n+       111 777-2-222\n+       71117772222\n+       +34 111 777-2-222\n+\n+       // Не валидные\n+       777-2-222\n+       АБС-6666\n+       +7 (111) 777%2%222\n+       +7 (111 777-2-222\n+       7+ (111) 777-2-222\n+       -7 (111) 777-2-222\n+       ```\n+\n+       Примеры электронной почты:\n+       ```text\n+       // Валидные\n+       info@example.com\n+       info@example.com.ru\n+       info@инфо.рф\n+       info@yandex","path":"README.md","position":64,"original_position":64,"commit_id":"1410de502cbe108379fae6b3e1410849ae5af897","original_commit_id":"1410de502cbe108379fae6b3e1410849ae5af897","user":{"login":"Zhigalov","id":1654243,"avatar_url":"https://avatars.githubusercontent.com/u/1654243?v=3","gravatar_id":"","url":"https://api.github.com/users/Zhigalov","html_url":"https://github.com/Zhigalov","followers_url":"https://api.github.com/users/Zhigalov/followers","following_url":"https://api.github.com/users/Zhigalov/following{/other_user}","gists_url":"https://api.github.com/users/Zhigalov/gists{/gist_id}","starred_url":"https://api.github.com/users/Zhigalov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zhigalov/subscriptions","organizations_url":"https://api.github.com/users/Zhigalov/orgs","repos_url":"https://api.github.com/users/Zhigalov/repos","events_url":"https://api.github.com/users/Zhigalov/events{/privacy}","received_events_url":"https://api.github.com/users/Zhigalov/received_events","type":"User","site_admin":false},"body":"Оно не валидное :) Спасибо","created_at":"2015-10-06T13:09:16Z","updated_at":"2015-10-06T13:09:16Z","html_url":"https://github.com/urfu-2015/javascript-tasks-2/pull/1#discussion_r41260730","pull_request_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-2/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/urfu-2015/javascript-tasks-2/pulls/comments/41260730"},"html":{"href":"https://github.com/urfu-2015/javascript-tasks-2/pull/1#discussion_r41260730"},"pull_request":{"href":"https://api.github.com/repos/urfu-2015/javascript-tasks-2/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/urfu-2015/javascript-tasks-2/pulls/1","id":46899095,"html_url":"https://github.com/urfu-2015/javascript-tasks-2/pull/1","diff_url":"https://github.com/urfu-2015/javascript-tasks-2/pull/1.diff","patch_url":"https://github.com/urfu-2015/javascript-tasks-2/pull/1.patch","issue_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-2/issues/1","number":1,"state":"open","locked":false,"title":"Добавлена задача","user":{"login":"gogoleff","id":4534405,"avatar_url":"https://avatars.githubusercontent.com/u/4534405?v=3","gravatar_id":"","url":"https://api.github.com/users/gogoleff","html_url":"https://github.com/gogoleff","followers_url":"https://api.github.com/users/gogoleff/followers","following_url":"https://api.github.com/users/gogoleff/following{/other_user}","gists_url":"https://api.github.com/users/gogoleff/gists{/gist_id}","starred_url":"https://api.github.com/users/gogoleff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gogoleff/subscriptions","organizations_url":"https://api.github.com/users/gogoleff/orgs","repos_url":"https://api.github.com/users/gogoleff/repos","events_url":"https://api.github.com/users/gogoleff/events{/privacy}","received_events_url":"https://api.github.com/users/gogoleff/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-10-06T12:59:50Z","updated_at":"2015-10-06T13:09:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":"dc8d92caf332b3904a8c309cd298f0c8683145f9","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-2/pulls/1/commits","review_comments_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-2/pulls/1/comments","review_comment_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-2/pulls/comments{/number}","comments_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-2/issues/1/comments","statuses_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-2/statuses/1410de502cbe108379fae6b3e1410849ae5af897","head":{"label":"gogoleff:add-task","ref":"add-task","sha":"1410de502cbe108379fae6b3e1410849ae5af897","user":{"login":"gogoleff","id":4534405,"avatar_url":"https://avatars.githubusercontent.com/u/4534405?v=3","gravatar_id":"","url":"https://api.github.com/users/gogoleff","html_url":"https://github.com/gogoleff","followers_url":"https://api.github.com/users/gogoleff/followers","following_url":"https://api.github.com/users/gogoleff/following{/other_user}","gists_url":"https://api.github.com/users/gogoleff/gists{/gist_id}","starred_url":"https://api.github.com/users/gogoleff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gogoleff/subscriptions","organizations_url":"https://api.github.com/users/gogoleff/orgs","repos_url":"https://api.github.com/users/gogoleff/repos","events_url":"https://api.github.com/users/gogoleff/events{/privacy}","received_events_url":"https://api.github.com/users/gogoleff/received_events","type":"User","site_admin":false},"repo":{"id":43743735,"name":"javascript-tasks-2","full_name":"gogoleff/javascript-tasks-2","owner":{"login":"gogoleff","id":4534405,"avatar_url":"https://avatars.githubusercontent.com/u/4534405?v=3","gravatar_id":"","url":"https://api.github.com/users/gogoleff","html_url":"https://github.com/gogoleff","followers_url":"https://api.github.com/users/gogoleff/followers","following_url":"https://api.github.com/users/gogoleff/following{/other_user}","gists_url":"https://api.github.com/users/gogoleff/gists{/gist_id}","starred_url":"https://api.github.com/users/gogoleff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gogoleff/subscriptions","organizations_url":"https://api.github.com/users/gogoleff/orgs","repos_url":"https://api.github.com/users/gogoleff/repos","events_url":"https://api.github.com/users/gogoleff/events{/privacy}","received_events_url":"https://api.github.com/users/gogoleff/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/gogoleff/javascript-tasks-2","description":"","fork":true,"url":"https://api.github.com/repos/gogoleff/javascript-tasks-2","forks_url":"https://api.github.com/repos/gogoleff/javascript-tasks-2/forks","keys_url":"https://api.github.com/repos/gogoleff/javascript-tasks-2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gogoleff/javascript-tasks-2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gogoleff/javascript-tasks-2/teams","hooks_url":"https://api.github.com/repos/gogoleff/javascript-tasks-2/hooks","issue_events_url":"https://api.github.com/repos/gogoleff/javascript-tasks-2/issues/events{/number}","events_url":"https://api.github.com/repos/gogoleff/javascript-tasks-2/events","assignees_url":"https://api.github.com/repos/gogoleff/javascript-tasks-2/assignees{/user}","branches_url":"https://api.github.com/repos/gogoleff/javascript-tasks-2/branches{/branch}","tags_url":"https://api.github.com/repos/gogoleff/javascript-tasks-2/tags","blobs_url":"https://api.github.com/repos/gogoleff/javascript-tasks-2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gogoleff/javascript-tasks-2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gogoleff/javascript-tasks-2/git/refs{/sha}","trees_url":"https://api.github.com/repos/gogoleff/javascript-tasks-2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gogoleff/javascript-tasks-2/statuses/{sha}","languages_url":"https://api.github.com/repos/gogoleff/javascript-tasks-2/languages","stargazers_url":"https://api.github.com/repos/gogoleff/javascript-tasks-2/stargazers","contributors_url":"https://api.github.com/repos/gogoleff/javascript-tasks-2/contributors","subscribers_url":"https://api.github.com/repos/gogoleff/javascript-tasks-2/subscribers","subscription_url":"https://api.github.com/repos/gogoleff/javascript-tasks-2/subscription","commits_url":"https://api.github.com/repos/gogoleff/javascript-tasks-2/commits{/sha}","git_commits_url":"https://api.github.com/repos/gogoleff/javascript-tasks-2/git/commits{/sha}","comments_url":"https://api.github.com/repos/gogoleff/javascript-tasks-2/comments{/number}","issue_comment_url":"https://api.github.com/repos/gogoleff/javascript-tasks-2/issues/comments{/number}","contents_url":"https://api.github.com/repos/gogoleff/javascript-tasks-2/contents/{+path}","compare_url":"https://api.github.com/repos/gogoleff/javascript-tasks-2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gogoleff/javascript-tasks-2/merges","archive_url":"https://api.github.com/repos/gogoleff/javascript-tasks-2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gogoleff/javascript-tasks-2/downloads","issues_url":"https://api.github.com/repos/gogoleff/javascript-tasks-2/issues{/number}","pulls_url":"https://api.github.com/repos/gogoleff/javascript-tasks-2/pulls{/number}","milestones_url":"https://api.github.com/repos/gogoleff/javascript-tasks-2/milestones{/number}","notifications_url":"https://api.github.com/repos/gogoleff/javascript-tasks-2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gogoleff/javascript-tasks-2/labels{/name}","releases_url":"https://api.github.com/repos/gogoleff/javascript-tasks-2/releases{/id}","created_at":"2015-10-06T10:22:28Z","updated_at":"2015-10-06T10:22:05Z","pushed_at":"2015-10-06T13:00:43Z","git_url":"git://github.com/gogoleff/javascript-tasks-2.git","ssh_url":"git@github.com:gogoleff/javascript-tasks-2.git","clone_url":"https://github.com/gogoleff/javascript-tasks-2.git","svn_url":"https://github.com/gogoleff/javascript-tasks-2","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"urfu-2015:master","ref":"master","sha":"8dadd61329792de9333727f26fac986f7ed45e1f","user":{"login":"urfu-2015","id":14800971,"avatar_url":"https://avatars.githubusercontent.com/u/14800971?v=3","gravatar_id":"","url":"https://api.github.com/users/urfu-2015","html_url":"https://github.com/urfu-2015","followers_url":"https://api.github.com/users/urfu-2015/followers","following_url":"https://api.github.com/users/urfu-2015/following{/other_user}","gists_url":"https://api.github.com/users/urfu-2015/gists{/gist_id}","starred_url":"https://api.github.com/users/urfu-2015/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/urfu-2015/subscriptions","organizations_url":"https://api.github.com/users/urfu-2015/orgs","repos_url":"https://api.github.com/users/urfu-2015/repos","events_url":"https://api.github.com/users/urfu-2015/events{/privacy}","received_events_url":"https://api.github.com/users/urfu-2015/received_events","type":"Organization","site_admin":false},"repo":{"id":43743710,"name":"javascript-tasks-2","full_name":"urfu-2015/javascript-tasks-2","owner":{"login":"urfu-2015","id":14800971,"avatar_url":"https://avatars.githubusercontent.com/u/14800971?v=3","gravatar_id":"","url":"https://api.github.com/users/urfu-2015","html_url":"https://github.com/urfu-2015","followers_url":"https://api.github.com/users/urfu-2015/followers","following_url":"https://api.github.com/users/urfu-2015/following{/other_user}","gists_url":"https://api.github.com/users/urfu-2015/gists{/gist_id}","starred_url":"https://api.github.com/users/urfu-2015/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/urfu-2015/subscriptions","organizations_url":"https://api.github.com/users/urfu-2015/orgs","repos_url":"https://api.github.com/users/urfu-2015/repos","events_url":"https://api.github.com/users/urfu-2015/events{/privacy}","received_events_url":"https://api.github.com/users/urfu-2015/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/urfu-2015/javascript-tasks-2","description":"","fork":false,"url":"https://api.github.com/repos/urfu-2015/javascript-tasks-2","forks_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-2/forks","keys_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-2/teams","hooks_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-2/hooks","issue_events_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-2/issues/events{/number}","events_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-2/events","assignees_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-2/assignees{/user}","branches_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-2/branches{/branch}","tags_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-2/tags","blobs_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-2/git/refs{/sha}","trees_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-2/statuses/{sha}","languages_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-2/languages","stargazers_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-2/stargazers","contributors_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-2/contributors","subscribers_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-2/subscribers","subscription_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-2/subscription","commits_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-2/commits{/sha}","git_commits_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-2/git/commits{/sha}","comments_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-2/comments{/number}","issue_comment_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-2/issues/comments{/number}","contents_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-2/contents/{+path}","compare_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-2/merges","archive_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-2/downloads","issues_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-2/issues{/number}","pulls_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-2/pulls{/number}","milestones_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-2/milestones{/number}","notifications_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-2/labels{/name}","releases_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-2/releases{/id}","created_at":"2015-10-06T10:22:05Z","updated_at":"2015-10-06T10:22:05Z","pushed_at":"2015-10-06T13:00:43Z","git_url":"git://github.com/urfu-2015/javascript-tasks-2.git","ssh_url":"git@github.com:urfu-2015/javascript-tasks-2.git","clone_url":"https://github.com/urfu-2015/javascript-tasks-2.git","svn_url":"https://github.com/urfu-2015/javascript-tasks-2","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"open_issues_count":1,"forks":6,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/urfu-2015/javascript-tasks-2/pulls/1"},"html":{"href":"https://github.com/urfu-2015/javascript-tasks-2/pull/1"},"issue":{"href":"https://api.github.com/repos/urfu-2015/javascript-tasks-2/issues/1"},"comments":{"href":"https://api.github.com/repos/urfu-2015/javascript-tasks-2/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/urfu-2015/javascript-tasks-2/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/urfu-2015/javascript-tasks-2/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/urfu-2015/javascript-tasks-2/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/urfu-2015/javascript-tasks-2/statuses/1410de502cbe108379fae6b3e1410849ae5af897"}}}}