{"action":"created","comment":{"url":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/comments/39412639","id":39412639,"diff_hunk":"@@ -44,6 +44,15 @@ var makeRegexValidator = function(regex, message, match) {\n     };\n };\n \n+var cleanURL = function(value) {","path":"website/static/js/koHelpers.js","position":4,"original_position":4,"commit_id":"46ebb5a4c00d4dbf8eb139ba263ce9a93ff5f7aa","original_commit_id":"46ebb5a4c00d4dbf8eb139ba263ce9a93ff5f7aa","user":{"login":"samanehsan","id":6414394,"avatar_url":"https://avatars.githubusercontent.com/u/6414394?v=3","gravatar_id":"","url":"https://api.github.com/users/samanehsan","html_url":"https://github.com/samanehsan","followers_url":"https://api.github.com/users/samanehsan/followers","following_url":"https://api.github.com/users/samanehsan/following{/other_user}","gists_url":"https://api.github.com/users/samanehsan/gists{/gist_id}","starred_url":"https://api.github.com/users/samanehsan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samanehsan/subscriptions","organizations_url":"https://api.github.com/users/samanehsan/orgs","repos_url":"https://api.github.com/users/samanehsan/repos","events_url":"https://api.github.com/users/samanehsan/events{/privacy}","received_events_url":"https://api.github.com/users/samanehsan/received_events","type":"User","site_admin":false},"body":"Is it possible to use the existing `ensureHttp` validator instead of creating a new one? https://github.com/billyhunt/osf.io/blob/feature/multiple-profile-websites2/website/static/js/koHelpers.js#L60-#L65","created_at":"2015-09-14T16:09:24Z","updated_at":"2015-09-14T16:09:24Z","html_url":"https://github.com/CenterForOpenScience/osf.io/pull/4263#discussion_r39412639","pull_request_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/4263","_links":{"self":{"href":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/comments/39412639"},"html":{"href":"https://github.com/CenterForOpenScience/osf.io/pull/4263#discussion_r39412639"},"pull_request":{"href":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/4263"}}},"pull_request":{"url":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/4263","id":44554617,"html_url":"https://github.com/CenterForOpenScience/osf.io/pull/4263","diff_url":"https://github.com/CenterForOpenScience/osf.io/pull/4263.diff","patch_url":"https://github.com/CenterForOpenScience/osf.io/pull/4263.patch","issue_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/4263","number":4263,"state":"open","locked":false,"title":"[Feature] Multiple Profile Websites","user":{"login":"billyhunt","id":6232068,"avatar_url":"https://avatars.githubusercontent.com/u/6232068?v=3","gravatar_id":"","url":"https://api.github.com/users/billyhunt","html_url":"https://github.com/billyhunt","followers_url":"https://api.github.com/users/billyhunt/followers","following_url":"https://api.github.com/users/billyhunt/following{/other_user}","gists_url":"https://api.github.com/users/billyhunt/gists{/gist_id}","starred_url":"https://api.github.com/users/billyhunt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/billyhunt/subscriptions","organizations_url":"https://api.github.com/users/billyhunt/orgs","repos_url":"https://api.github.com/users/billyhunt/repos","events_url":"https://api.github.com/users/billyhunt/events{/privacy}","received_events_url":"https://api.github.com/users/billyhunt/received_events","type":"User","site_admin":false},"body":"Fixes:  #2387 and replaces PR #2405\r\n\r\nAllow users to add and sort unlimited websites to their personal profile.  \r\n\r\n\r\nPurpose\r\n-----------\r\n\r\nUsers will be allowed to add multiple personal websites to their user profile.\r\n\r\nCurrent:\r\n\r\n![screenshot 2015-04-03 17 47 09](https://cloud.githubusercontent.com/assets/6232068/6989659/5c038358-da2c-11e4-9371-842424c188ef.png)\r\n\r\nProposed:\r\n\r\n![screen shot 2015-09-09 at 9 39 55 am](https://cloud.githubusercontent.com/assets/6232068/9763313/fab512b0-56d6-11e5-9a21-0222c7dda058.png)\r\n\r\nChanges\r\n------------\r\n\r\n1.  In the social array of the User section of the mongo DB, add a profile_websites list.\r\n2.  Add an \"Add\" button below the users first website.  This button will create a new blank field to add websites.  The user can add unlimited websites.\r\n4.  Put an \"X\" for website removal.  If there is more then one website, it will remove that field from the list.  If there is only one, it will remove it, then create a new blank field. (Same behavior as Employment and Education tabs)\r\n5.  Upon a save or remove, any blank websites will not be saved to the database, even though they are visible in the view.  When the page refreshes, they will no longer be visible.  \r\n\r\n","created_at":"2015-09-09T14:13:15Z","updated_at":"2015-09-14T16:09:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f6a67e253864ed7170f51e554a746b0bac2b57a5","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/4263/commits","review_comments_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/4263/comments","review_comment_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/comments{/number}","comments_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/4263/comments","statuses_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/statuses/46ebb5a4c00d4dbf8eb139ba263ce9a93ff5f7aa","head":{"label":"billyhunt:feature/multiple-profile-websites2","ref":"feature/multiple-profile-websites2","sha":"46ebb5a4c00d4dbf8eb139ba263ce9a93ff5f7aa","user":{"login":"billyhunt","id":6232068,"avatar_url":"https://avatars.githubusercontent.com/u/6232068?v=3","gravatar_id":"","url":"https://api.github.com/users/billyhunt","html_url":"https://github.com/billyhunt","followers_url":"https://api.github.com/users/billyhunt/followers","following_url":"https://api.github.com/users/billyhunt/following{/other_user}","gists_url":"https://api.github.com/users/billyhunt/gists{/gist_id}","starred_url":"https://api.github.com/users/billyhunt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/billyhunt/subscriptions","organizations_url":"https://api.github.com/users/billyhunt/orgs","repos_url":"https://api.github.com/users/billyhunt/repos","events_url":"https://api.github.com/users/billyhunt/events{/privacy}","received_events_url":"https://api.github.com/users/billyhunt/received_events","type":"User","site_admin":false},"repo":{"id":33544748,"name":"osf.io","full_name":"billyhunt/osf.io","owner":{"login":"billyhunt","id":6232068,"avatar_url":"https://avatars.githubusercontent.com/u/6232068?v=3","gravatar_id":"","url":"https://api.github.com/users/billyhunt","html_url":"https://github.com/billyhunt","followers_url":"https://api.github.com/users/billyhunt/followers","following_url":"https://api.github.com/users/billyhunt/following{/other_user}","gists_url":"https://api.github.com/users/billyhunt/gists{/gist_id}","starred_url":"https://api.github.com/users/billyhunt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/billyhunt/subscriptions","organizations_url":"https://api.github.com/users/billyhunt/orgs","repos_url":"https://api.github.com/users/billyhunt/repos","events_url":"https://api.github.com/users/billyhunt/events{/privacy}","received_events_url":"https://api.github.com/users/billyhunt/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/billyhunt/osf.io","description":"Facilitating Open Science","fork":true,"url":"https://api.github.com/repos/billyhunt/osf.io","forks_url":"https://api.github.com/repos/billyhunt/osf.io/forks","keys_url":"https://api.github.com/repos/billyhunt/osf.io/keys{/key_id}","collaborators_url":"https://api.github.com/repos/billyhunt/osf.io/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/billyhunt/osf.io/teams","hooks_url":"https://api.github.com/repos/billyhunt/osf.io/hooks","issue_events_url":"https://api.github.com/repos/billyhunt/osf.io/issues/events{/number}","events_url":"https://api.github.com/repos/billyhunt/osf.io/events","assignees_url":"https://api.github.com/repos/billyhunt/osf.io/assignees{/user}","branches_url":"https://api.github.com/repos/billyhunt/osf.io/branches{/branch}","tags_url":"https://api.github.com/repos/billyhunt/osf.io/tags","blobs_url":"https://api.github.com/repos/billyhunt/osf.io/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/billyhunt/osf.io/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/billyhunt/osf.io/git/refs{/sha}","trees_url":"https://api.github.com/repos/billyhunt/osf.io/git/trees{/sha}","statuses_url":"https://api.github.com/repos/billyhunt/osf.io/statuses/{sha}","languages_url":"https://api.github.com/repos/billyhunt/osf.io/languages","stargazers_url":"https://api.github.com/repos/billyhunt/osf.io/stargazers","contributors_url":"https://api.github.com/repos/billyhunt/osf.io/contributors","subscribers_url":"https://api.github.com/repos/billyhunt/osf.io/subscribers","subscription_url":"https://api.github.com/repos/billyhunt/osf.io/subscription","commits_url":"https://api.github.com/repos/billyhunt/osf.io/commits{/sha}","git_commits_url":"https://api.github.com/repos/billyhunt/osf.io/git/commits{/sha}","comments_url":"https://api.github.com/repos/billyhunt/osf.io/comments{/number}","issue_comment_url":"https://api.github.com/repos/billyhunt/osf.io/issues/comments{/number}","contents_url":"https://api.github.com/repos/billyhunt/osf.io/contents/{+path}","compare_url":"https://api.github.com/repos/billyhunt/osf.io/compare/{base}...{head}","merges_url":"https://api.github.com/repos/billyhunt/osf.io/merges","archive_url":"https://api.github.com/repos/billyhunt/osf.io/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/billyhunt/osf.io/downloads","issues_url":"https://api.github.com/repos/billyhunt/osf.io/issues{/number}","pulls_url":"https://api.github.com/repos/billyhunt/osf.io/pulls{/number}","milestones_url":"https://api.github.com/repos/billyhunt/osf.io/milestones{/number}","notifications_url":"https://api.github.com/repos/billyhunt/osf.io/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/billyhunt/osf.io/labels{/name}","releases_url":"https://api.github.com/repos/billyhunt/osf.io/releases{/id}","created_at":"2015-04-07T13:28:52Z","updated_at":"2015-05-06T16:08:02Z","pushed_at":"2015-09-11T14:40:50Z","git_url":"git://github.com/billyhunt/osf.io.git","ssh_url":"git@github.com:billyhunt/osf.io.git","clone_url":"https://github.com/billyhunt/osf.io.git","svn_url":"https://github.com/billyhunt/osf.io","homepage":"http://osf.io","size":100663,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"develop"}},"base":{"label":"CenterForOpenScience:develop","ref":"develop","sha":"8e4d65c0e2d12b75a3ade6d56f5cbb39e02ce849","user":{"login":"CenterForOpenScience","id":3344584,"avatar_url":"https://avatars.githubusercontent.com/u/3344584?v=3","gravatar_id":"","url":"https://api.github.com/users/CenterForOpenScience","html_url":"https://github.com/CenterForOpenScience","followers_url":"https://api.github.com/users/CenterForOpenScience/followers","following_url":"https://api.github.com/users/CenterForOpenScience/following{/other_user}","gists_url":"https://api.github.com/users/CenterForOpenScience/gists{/gist_id}","starred_url":"https://api.github.com/users/CenterForOpenScience/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CenterForOpenScience/subscriptions","organizations_url":"https://api.github.com/users/CenterForOpenScience/orgs","repos_url":"https://api.github.com/users/CenterForOpenScience/repos","events_url":"https://api.github.com/users/CenterForOpenScience/events{/privacy}","received_events_url":"https://api.github.com/users/CenterForOpenScience/received_events","type":"Organization","site_admin":false},"repo":{"id":10199599,"name":"osf.io","full_name":"CenterForOpenScience/osf.io","owner":{"login":"CenterForOpenScience","id":3344584,"avatar_url":"https://avatars.githubusercontent.com/u/3344584?v=3","gravatar_id":"","url":"https://api.github.com/users/CenterForOpenScience","html_url":"https://github.com/CenterForOpenScience","followers_url":"https://api.github.com/users/CenterForOpenScience/followers","following_url":"https://api.github.com/users/CenterForOpenScience/following{/other_user}","gists_url":"https://api.github.com/users/CenterForOpenScience/gists{/gist_id}","starred_url":"https://api.github.com/users/CenterForOpenScience/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CenterForOpenScience/subscriptions","organizations_url":"https://api.github.com/users/CenterForOpenScience/orgs","repos_url":"https://api.github.com/users/CenterForOpenScience/repos","events_url":"https://api.github.com/users/CenterForOpenScience/events{/privacy}","received_events_url":"https://api.github.com/users/CenterForOpenScience/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/CenterForOpenScience/osf.io","description":"Facilitating Open Science","fork":false,"url":"https://api.github.com/repos/CenterForOpenScience/osf.io","forks_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/forks","keys_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/teams","hooks_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/hooks","issue_events_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/events{/number}","events_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/events","assignees_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/assignees{/user}","branches_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/branches{/branch}","tags_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/tags","blobs_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/git/refs{/sha}","trees_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/statuses/{sha}","languages_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/languages","stargazers_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/stargazers","contributors_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/contributors","subscribers_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/subscribers","subscription_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/subscription","commits_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/commits{/sha}","git_commits_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/git/commits{/sha}","comments_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/comments{/number}","issue_comment_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/comments{/number}","contents_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/contents/{+path}","compare_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/merges","archive_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/downloads","issues_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues{/number}","pulls_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls{/number}","milestones_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/milestones{/number}","notifications_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/labels{/name}","releases_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/releases{/id}","created_at":"2013-05-21T15:53:37Z","updated_at":"2015-09-10T13:17:29Z","pushed_at":"2015-09-14T15:55:31Z","git_url":"git://github.com/CenterForOpenScience/osf.io.git","ssh_url":"git@github.com:CenterForOpenScience/osf.io.git","clone_url":"https://github.com/CenterForOpenScience/osf.io.git","svn_url":"https://github.com/CenterForOpenScience/osf.io","homepage":"http://osf.io","size":229750,"stargazers_count":137,"watchers_count":137,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":115,"mirror_url":null,"open_issues_count":420,"forks":115,"open_issues":420,"watchers":137,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/4263"},"html":{"href":"https://github.com/CenterForOpenScience/osf.io/pull/4263"},"issue":{"href":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/4263"},"comments":{"href":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/4263/comments"},"review_comments":{"href":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/4263/comments"},"review_comment":{"href":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/4263/commits"},"statuses":{"href":"https://api.github.com/repos/CenterForOpenScience/osf.io/statuses/46ebb5a4c00d4dbf8eb139ba263ce9a93ff5f7aa"}}}}