{"action":"created","comment":{"url":"https://api.github.com/repos/devexp-org/devexp/pulls/comments/39205360","id":39205360,"diff_hunk":"@@ -0,0 +1,57 @@\n+'use strict';\n+\n+import util from 'util';\n+import { find } from 'lodash';\n+\n+const COMMAND_REGEXP = /(?:^|\\W)\\+@?([-0-9a-z]+)(?:\\W|$)|(?:^|\\W)\\/?add\\s+@?([-0-9a-z]+)(?:\\W|$)/;","path":"services/command/add.js","position":6,"original_position":6,"commit_id":"1d4ddfecd4e83a64d9527afe4e3a98b55a322d06","original_commit_id":"1d4ddfecd4e83a64d9527afe4e3a98b55a322d06","user":{"login":"sbmaxx","id":381830,"avatar_url":"https://avatars.githubusercontent.com/u/381830?v=3","gravatar_id":"","url":"https://api.github.com/users/sbmaxx","html_url":"https://github.com/sbmaxx","followers_url":"https://api.github.com/users/sbmaxx/followers","following_url":"https://api.github.com/users/sbmaxx/following{/other_user}","gists_url":"https://api.github.com/users/sbmaxx/gists{/gist_id}","starred_url":"https://api.github.com/users/sbmaxx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sbmaxx/subscriptions","organizations_url":"https://api.github.com/users/sbmaxx/orgs","repos_url":"https://api.github.com/users/sbmaxx/repos","events_url":"https://api.github.com/users/sbmaxx/events{/privacy}","received_events_url":"https://api.github.com/users/sbmaxx/received_events","type":"User","site_admin":false},"body":"я бы ещё попробовал упростить эту регулярку. если прям ваще никак, то написать её в несколько строк с комментами, иначе очень тяжело читать и понимать, что как куда","created_at":"2015-09-10T19:54:07Z","updated_at":"2015-09-10T19:54:07Z","html_url":"https://github.com/devexp-org/devexp/pull/63#discussion_r39205360","pull_request_url":"https://api.github.com/repos/devexp-org/devexp/pulls/63","_links":{"self":{"href":"https://api.github.com/repos/devexp-org/devexp/pulls/comments/39205360"},"html":{"href":"https://github.com/devexp-org/devexp/pull/63#discussion_r39205360"},"pull_request":{"href":"https://api.github.com/repos/devexp-org/devexp/pulls/63"}}},"pull_request":{"url":"https://api.github.com/repos/devexp-org/devexp/pulls/63","id":44709209,"html_url":"https://github.com/devexp-org/devexp/pull/63","diff_url":"https://github.com/devexp-org/devexp/pull/63.diff","patch_url":"https://github.com/devexp-org/devexp/pull/63.patch","issue_url":"https://api.github.com/repos/devexp-org/devexp/issues/63","number":63,"state":"open","locked":false,"title":"Команда /add","user":{"login":"d4rkr00t","id":200119,"avatar_url":"https://avatars.githubusercontent.com/u/200119?v=3","gravatar_id":"","url":"https://api.github.com/users/d4rkr00t","html_url":"https://github.com/d4rkr00t","followers_url":"https://api.github.com/users/d4rkr00t/followers","following_url":"https://api.github.com/users/d4rkr00t/following{/other_user}","gists_url":"https://api.github.com/users/d4rkr00t/gists{/gist_id}","starred_url":"https://api.github.com/users/d4rkr00t/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/d4rkr00t/subscriptions","organizations_url":"https://api.github.com/users/d4rkr00t/orgs","repos_url":"https://api.github.com/users/d4rkr00t/repos","events_url":"https://api.github.com/users/d4rkr00t/events{/privacy}","received_events_url":"https://api.github.com/users/d4rkr00t/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-09-10T19:31:38Z","updated_at":"2015-09-10T19:54:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1774a762ea5d6c666ffa9ac8ce9d5a2029bacfd2","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/devexp-org/devexp/pulls/63/commits","review_comments_url":"https://api.github.com/repos/devexp-org/devexp/pulls/63/comments","review_comment_url":"https://api.github.com/repos/devexp-org/devexp/pulls/comments{/number}","comments_url":"https://api.github.com/repos/devexp-org/devexp/issues/63/comments","statuses_url":"https://api.github.com/repos/devexp-org/devexp/statuses/1d4ddfecd4e83a64d9527afe4e3a98b55a322d06","head":{"label":"devexp-org:add","ref":"add","sha":"1d4ddfecd4e83a64d9527afe4e3a98b55a322d06","user":{"login":"devexp-org","id":11798476,"avatar_url":"https://avatars.githubusercontent.com/u/11798476?v=3","gravatar_id":"","url":"https://api.github.com/users/devexp-org","html_url":"https://github.com/devexp-org","followers_url":"https://api.github.com/users/devexp-org/followers","following_url":"https://api.github.com/users/devexp-org/following{/other_user}","gists_url":"https://api.github.com/users/devexp-org/gists{/gist_id}","starred_url":"https://api.github.com/users/devexp-org/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/devexp-org/subscriptions","organizations_url":"https://api.github.com/users/devexp-org/orgs","repos_url":"https://api.github.com/users/devexp-org/repos","events_url":"https://api.github.com/users/devexp-org/events{/privacy}","received_events_url":"https://api.github.com/users/devexp-org/received_events","type":"Organization","site_admin":false},"repo":{"id":33411004,"name":"devexp","full_name":"devexp-org/devexp","owner":{"login":"devexp-org","id":11798476,"avatar_url":"https://avatars.githubusercontent.com/u/11798476?v=3","gravatar_id":"","url":"https://api.github.com/users/devexp-org","html_url":"https://github.com/devexp-org","followers_url":"https://api.github.com/users/devexp-org/followers","following_url":"https://api.github.com/users/devexp-org/following{/other_user}","gists_url":"https://api.github.com/users/devexp-org/gists{/gist_id}","starred_url":"https://api.github.com/users/devexp-org/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/devexp-org/subscriptions","organizations_url":"https://api.github.com/users/devexp-org/orgs","repos_url":"https://api.github.com/users/devexp-org/repos","events_url":"https://api.github.com/users/devexp-org/events{/privacy}","received_events_url":"https://api.github.com/users/devexp-org/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/devexp-org/devexp","description":"Developers Experiments","fork":false,"url":"https://api.github.com/repos/devexp-org/devexp","forks_url":"https://api.github.com/repos/devexp-org/devexp/forks","keys_url":"https://api.github.com/repos/devexp-org/devexp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/devexp-org/devexp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/devexp-org/devexp/teams","hooks_url":"https://api.github.com/repos/devexp-org/devexp/hooks","issue_events_url":"https://api.github.com/repos/devexp-org/devexp/issues/events{/number}","events_url":"https://api.github.com/repos/devexp-org/devexp/events","assignees_url":"https://api.github.com/repos/devexp-org/devexp/assignees{/user}","branches_url":"https://api.github.com/repos/devexp-org/devexp/branches{/branch}","tags_url":"https://api.github.com/repos/devexp-org/devexp/tags","blobs_url":"https://api.github.com/repos/devexp-org/devexp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/devexp-org/devexp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/devexp-org/devexp/git/refs{/sha}","trees_url":"https://api.github.com/repos/devexp-org/devexp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/devexp-org/devexp/statuses/{sha}","languages_url":"https://api.github.com/repos/devexp-org/devexp/languages","stargazers_url":"https://api.github.com/repos/devexp-org/devexp/stargazers","contributors_url":"https://api.github.com/repos/devexp-org/devexp/contributors","subscribers_url":"https://api.github.com/repos/devexp-org/devexp/subscribers","subscription_url":"https://api.github.com/repos/devexp-org/devexp/subscription","commits_url":"https://api.github.com/repos/devexp-org/devexp/commits{/sha}","git_commits_url":"https://api.github.com/repos/devexp-org/devexp/git/commits{/sha}","comments_url":"https://api.github.com/repos/devexp-org/devexp/comments{/number}","issue_comment_url":"https://api.github.com/repos/devexp-org/devexp/issues/comments{/number}","contents_url":"https://api.github.com/repos/devexp-org/devexp/contents/{+path}","compare_url":"https://api.github.com/repos/devexp-org/devexp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/devexp-org/devexp/merges","archive_url":"https://api.github.com/repos/devexp-org/devexp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/devexp-org/devexp/downloads","issues_url":"https://api.github.com/repos/devexp-org/devexp/issues{/number}","pulls_url":"https://api.github.com/repos/devexp-org/devexp/pulls{/number}","milestones_url":"https://api.github.com/repos/devexp-org/devexp/milestones{/number}","notifications_url":"https://api.github.com/repos/devexp-org/devexp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/devexp-org/devexp/labels{/name}","releases_url":"https://api.github.com/repos/devexp-org/devexp/releases{/id}","created_at":"2015-04-04T15:56:15Z","updated_at":"2015-08-27T06:19:47Z","pushed_at":"2015-09-10T19:31:38Z","git_url":"git://github.com/devexp-org/devexp.git","ssh_url":"git@github.com:devexp-org/devexp.git","clone_url":"https://github.com/devexp-org/devexp.git","svn_url":"https://github.com/devexp-org/devexp","homepage":"","size":1404,"stargazers_count":3,"watchers_count":3,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":20,"forks":0,"open_issues":20,"watchers":3,"default_branch":"master"}},"base":{"label":"devexp-org:master","ref":"master","sha":"16e79f4875591235bcffdb0966b2548b200aab87","user":{"login":"devexp-org","id":11798476,"avatar_url":"https://avatars.githubusercontent.com/u/11798476?v=3","gravatar_id":"","url":"https://api.github.com/users/devexp-org","html_url":"https://github.com/devexp-org","followers_url":"https://api.github.com/users/devexp-org/followers","following_url":"https://api.github.com/users/devexp-org/following{/other_user}","gists_url":"https://api.github.com/users/devexp-org/gists{/gist_id}","starred_url":"https://api.github.com/users/devexp-org/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/devexp-org/subscriptions","organizations_url":"https://api.github.com/users/devexp-org/orgs","repos_url":"https://api.github.com/users/devexp-org/repos","events_url":"https://api.github.com/users/devexp-org/events{/privacy}","received_events_url":"https://api.github.com/users/devexp-org/received_events","type":"Organization","site_admin":false},"repo":{"id":33411004,"name":"devexp","full_name":"devexp-org/devexp","owner":{"login":"devexp-org","id":11798476,"avatar_url":"https://avatars.githubusercontent.com/u/11798476?v=3","gravatar_id":"","url":"https://api.github.com/users/devexp-org","html_url":"https://github.com/devexp-org","followers_url":"https://api.github.com/users/devexp-org/followers","following_url":"https://api.github.com/users/devexp-org/following{/other_user}","gists_url":"https://api.github.com/users/devexp-org/gists{/gist_id}","starred_url":"https://api.github.com/users/devexp-org/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/devexp-org/subscriptions","organizations_url":"https://api.github.com/users/devexp-org/orgs","repos_url":"https://api.github.com/users/devexp-org/repos","events_url":"https://api.github.com/users/devexp-org/events{/privacy}","received_events_url":"https://api.github.com/users/devexp-org/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/devexp-org/devexp","description":"Developers Experiments","fork":false,"url":"https://api.github.com/repos/devexp-org/devexp","forks_url":"https://api.github.com/repos/devexp-org/devexp/forks","keys_url":"https://api.github.com/repos/devexp-org/devexp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/devexp-org/devexp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/devexp-org/devexp/teams","hooks_url":"https://api.github.com/repos/devexp-org/devexp/hooks","issue_events_url":"https://api.github.com/repos/devexp-org/devexp/issues/events{/number}","events_url":"https://api.github.com/repos/devexp-org/devexp/events","assignees_url":"https://api.github.com/repos/devexp-org/devexp/assignees{/user}","branches_url":"https://api.github.com/repos/devexp-org/devexp/branches{/branch}","tags_url":"https://api.github.com/repos/devexp-org/devexp/tags","blobs_url":"https://api.github.com/repos/devexp-org/devexp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/devexp-org/devexp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/devexp-org/devexp/git/refs{/sha}","trees_url":"https://api.github.com/repos/devexp-org/devexp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/devexp-org/devexp/statuses/{sha}","languages_url":"https://api.github.com/repos/devexp-org/devexp/languages","stargazers_url":"https://api.github.com/repos/devexp-org/devexp/stargazers","contributors_url":"https://api.github.com/repos/devexp-org/devexp/contributors","subscribers_url":"https://api.github.com/repos/devexp-org/devexp/subscribers","subscription_url":"https://api.github.com/repos/devexp-org/devexp/subscription","commits_url":"https://api.github.com/repos/devexp-org/devexp/commits{/sha}","git_commits_url":"https://api.github.com/repos/devexp-org/devexp/git/commits{/sha}","comments_url":"https://api.github.com/repos/devexp-org/devexp/comments{/number}","issue_comment_url":"https://api.github.com/repos/devexp-org/devexp/issues/comments{/number}","contents_url":"https://api.github.com/repos/devexp-org/devexp/contents/{+path}","compare_url":"https://api.github.com/repos/devexp-org/devexp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/devexp-org/devexp/merges","archive_url":"https://api.github.com/repos/devexp-org/devexp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/devexp-org/devexp/downloads","issues_url":"https://api.github.com/repos/devexp-org/devexp/issues{/number}","pulls_url":"https://api.github.com/repos/devexp-org/devexp/pulls{/number}","milestones_url":"https://api.github.com/repos/devexp-org/devexp/milestones{/number}","notifications_url":"https://api.github.com/repos/devexp-org/devexp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/devexp-org/devexp/labels{/name}","releases_url":"https://api.github.com/repos/devexp-org/devexp/releases{/id}","created_at":"2015-04-04T15:56:15Z","updated_at":"2015-08-27T06:19:47Z","pushed_at":"2015-09-10T19:31:38Z","git_url":"git://github.com/devexp-org/devexp.git","ssh_url":"git@github.com:devexp-org/devexp.git","clone_url":"https://github.com/devexp-org/devexp.git","svn_url":"https://github.com/devexp-org/devexp","homepage":"","size":1404,"stargazers_count":3,"watchers_count":3,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":20,"forks":0,"open_issues":20,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/devexp-org/devexp/pulls/63"},"html":{"href":"https://github.com/devexp-org/devexp/pull/63"},"issue":{"href":"https://api.github.com/repos/devexp-org/devexp/issues/63"},"comments":{"href":"https://api.github.com/repos/devexp-org/devexp/issues/63/comments"},"review_comments":{"href":"https://api.github.com/repos/devexp-org/devexp/pulls/63/comments"},"review_comment":{"href":"https://api.github.com/repos/devexp-org/devexp/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/devexp-org/devexp/pulls/63/commits"},"statuses":{"href":"https://api.github.com/repos/devexp-org/devexp/statuses/1d4ddfecd4e83a64d9527afe4e3a98b55a322d06"}}}}