{"action":"closed","number":3,"pull_request":{"url":"https://api.github.com/repos/grncdr/js-capitalize/pulls/3","id":35592980,"html_url":"https://github.com/grncdr/js-capitalize/pull/3","diff_url":"https://github.com/grncdr/js-capitalize/pull/3.diff","patch_url":"https://github.com/grncdr/js-capitalize/pull/3.patch","issue_url":"https://api.github.com/repos/grncdr/js-capitalize/issues/3","number":3,"state":"closed","locked":false,"title":"Avoid matching on single quotes","user":{"login":"ultraflynn","id":514416,"avatar_url":"https://avatars.githubusercontent.com/u/514416?v=3","gravatar_id":"","url":"https://api.github.com/users/ultraflynn","html_url":"https://github.com/ultraflynn","followers_url":"https://api.github.com/users/ultraflynn/followers","following_url":"https://api.github.com/users/ultraflynn/following{/other_user}","gists_url":"https://api.github.com/users/ultraflynn/gists{/gist_id}","starred_url":"https://api.github.com/users/ultraflynn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ultraflynn/subscriptions","organizations_url":"https://api.github.com/users/ultraflynn/orgs","repos_url":"https://api.github.com/users/ultraflynn/repos","events_url":"https://api.github.com/users/ultraflynn/events{/privacy}","received_events_url":"https://api.github.com/users/ultraflynn/received_events","type":"User","site_admin":false},"body":"The first group match in the regexp would match on a single quote and that resulted in results like this:\r\n\r\n`it's a nice day` would become `It'S A Nice Day`\r\n\r\nI have expanded the `\\w` shortcut into the full version and added the single quote char: `[^a-zA-Z0-9_']`\r\n\r\nI added a test to the README to cover this as well.","created_at":"2015-05-17T20:41:55Z","updated_at":"2015-05-18T19:41:00Z","closed_at":"2015-05-18T19:41:00Z","merged_at":"2015-05-18T19:41:00Z","merge_commit_sha":"a422dd76411c96647e50afbb3f5d07915f225f89","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/grncdr/js-capitalize/pulls/3/commits","review_comments_url":"https://api.github.com/repos/grncdr/js-capitalize/pulls/3/comments","review_comment_url":"https://api.github.com/repos/grncdr/js-capitalize/pulls/comments{/number}","comments_url":"https://api.github.com/repos/grncdr/js-capitalize/issues/3/comments","statuses_url":"https://api.github.com/repos/grncdr/js-capitalize/statuses/5b23f789351d2f380d4170d1eed13a928db8e5f3","head":{"label":"ultraflynn:master","ref":"master","sha":"5b23f789351d2f380d4170d1eed13a928db8e5f3","user":{"login":"ultraflynn","id":514416,"avatar_url":"https://avatars.githubusercontent.com/u/514416?v=3","gravatar_id":"","url":"https://api.github.com/users/ultraflynn","html_url":"https://github.com/ultraflynn","followers_url":"https://api.github.com/users/ultraflynn/followers","following_url":"https://api.github.com/users/ultraflynn/following{/other_user}","gists_url":"https://api.github.com/users/ultraflynn/gists{/gist_id}","starred_url":"https://api.github.com/users/ultraflynn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ultraflynn/subscriptions","organizations_url":"https://api.github.com/users/ultraflynn/orgs","repos_url":"https://api.github.com/users/ultraflynn/repos","events_url":"https://api.github.com/users/ultraflynn/events{/privacy}","received_events_url":"https://api.github.com/users/ultraflynn/received_events","type":"User","site_admin":false},"repo":{"id":35779420,"name":"js-capitalize","full_name":"ultraflynn/js-capitalize","owner":{"login":"ultraflynn","id":514416,"avatar_url":"https://avatars.githubusercontent.com/u/514416?v=3","gravatar_id":"","url":"https://api.github.com/users/ultraflynn","html_url":"https://github.com/ultraflynn","followers_url":"https://api.github.com/users/ultraflynn/followers","following_url":"https://api.github.com/users/ultraflynn/following{/other_user}","gists_url":"https://api.github.com/users/ultraflynn/gists{/gist_id}","starred_url":"https://api.github.com/users/ultraflynn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ultraflynn/subscriptions","organizations_url":"https://api.github.com/users/ultraflynn/orgs","repos_url":"https://api.github.com/users/ultraflynn/repos","events_url":"https://api.github.com/users/ultraflynn/events{/privacy}","received_events_url":"https://api.github.com/users/ultraflynn/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ultraflynn/js-capitalize","description":"capitalize a string, or all words in a string","fork":true,"url":"https://api.github.com/repos/ultraflynn/js-capitalize","forks_url":"https://api.github.com/repos/ultraflynn/js-capitalize/forks","keys_url":"https://api.github.com/repos/ultraflynn/js-capitalize/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ultraflynn/js-capitalize/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ultraflynn/js-capitalize/teams","hooks_url":"https://api.github.com/repos/ultraflynn/js-capitalize/hooks","issue_events_url":"https://api.github.com/repos/ultraflynn/js-capitalize/issues/events{/number}","events_url":"https://api.github.com/repos/ultraflynn/js-capitalize/events","assignees_url":"https://api.github.com/repos/ultraflynn/js-capitalize/assignees{/user}","branches_url":"https://api.github.com/repos/ultraflynn/js-capitalize/branches{/branch}","tags_url":"https://api.github.com/repos/ultraflynn/js-capitalize/tags","blobs_url":"https://api.github.com/repos/ultraflynn/js-capitalize/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ultraflynn/js-capitalize/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ultraflynn/js-capitalize/git/refs{/sha}","trees_url":"https://api.github.com/repos/ultraflynn/js-capitalize/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ultraflynn/js-capitalize/statuses/{sha}","languages_url":"https://api.github.com/repos/ultraflynn/js-capitalize/languages","stargazers_url":"https://api.github.com/repos/ultraflynn/js-capitalize/stargazers","contributors_url":"https://api.github.com/repos/ultraflynn/js-capitalize/contributors","subscribers_url":"https://api.github.com/repos/ultraflynn/js-capitalize/subscribers","subscription_url":"https://api.github.com/repos/ultraflynn/js-capitalize/subscription","commits_url":"https://api.github.com/repos/ultraflynn/js-capitalize/commits{/sha}","git_commits_url":"https://api.github.com/repos/ultraflynn/js-capitalize/git/commits{/sha}","comments_url":"https://api.github.com/repos/ultraflynn/js-capitalize/comments{/number}","issue_comment_url":"https://api.github.com/repos/ultraflynn/js-capitalize/issues/comments{/number}","contents_url":"https://api.github.com/repos/ultraflynn/js-capitalize/contents/{+path}","compare_url":"https://api.github.com/repos/ultraflynn/js-capitalize/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ultraflynn/js-capitalize/merges","archive_url":"https://api.github.com/repos/ultraflynn/js-capitalize/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ultraflynn/js-capitalize/downloads","issues_url":"https://api.github.com/repos/ultraflynn/js-capitalize/issues{/number}","pulls_url":"https://api.github.com/repos/ultraflynn/js-capitalize/pulls{/number}","milestones_url":"https://api.github.com/repos/ultraflynn/js-capitalize/milestones{/number}","notifications_url":"https://api.github.com/repos/ultraflynn/js-capitalize/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ultraflynn/js-capitalize/labels{/name}","releases_url":"https://api.github.com/repos/ultraflynn/js-capitalize/releases{/id}","created_at":"2015-05-17T19:24:10Z","updated_at":"2015-05-17T19:24:11Z","pushed_at":"2015-05-17T20:36:43Z","git_url":"git://github.com/ultraflynn/js-capitalize.git","ssh_url":"git@github.com:ultraflynn/js-capitalize.git","clone_url":"https://github.com/ultraflynn/js-capitalize.git","svn_url":"https://github.com/ultraflynn/js-capitalize","homepage":"","size":82,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":"grncdr:master","ref":"master","sha":"32d055e41648bf848a23787d1e5392c1499d35eb","user":{"login":"grncdr","id":82634,"avatar_url":"https://avatars.githubusercontent.com/u/82634?v=3","gravatar_id":"","url":"https://api.github.com/users/grncdr","html_url":"https://github.com/grncdr","followers_url":"https://api.github.com/users/grncdr/followers","following_url":"https://api.github.com/users/grncdr/following{/other_user}","gists_url":"https://api.github.com/users/grncdr/gists{/gist_id}","starred_url":"https://api.github.com/users/grncdr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grncdr/subscriptions","organizations_url":"https://api.github.com/users/grncdr/orgs","repos_url":"https://api.github.com/users/grncdr/repos","events_url":"https://api.github.com/users/grncdr/events{/privacy}","received_events_url":"https://api.github.com/users/grncdr/received_events","type":"User","site_admin":false},"repo":{"id":16413714,"name":"js-capitalize","full_name":"grncdr/js-capitalize","owner":{"login":"grncdr","id":82634,"avatar_url":"https://avatars.githubusercontent.com/u/82634?v=3","gravatar_id":"","url":"https://api.github.com/users/grncdr","html_url":"https://github.com/grncdr","followers_url":"https://api.github.com/users/grncdr/followers","following_url":"https://api.github.com/users/grncdr/following{/other_user}","gists_url":"https://api.github.com/users/grncdr/gists{/gist_id}","starred_url":"https://api.github.com/users/grncdr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grncdr/subscriptions","organizations_url":"https://api.github.com/users/grncdr/orgs","repos_url":"https://api.github.com/users/grncdr/repos","events_url":"https://api.github.com/users/grncdr/events{/privacy}","received_events_url":"https://api.github.com/users/grncdr/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/grncdr/js-capitalize","description":"capitalize a string, or all words in a string","fork":false,"url":"https://api.github.com/repos/grncdr/js-capitalize","forks_url":"https://api.github.com/repos/grncdr/js-capitalize/forks","keys_url":"https://api.github.com/repos/grncdr/js-capitalize/keys{/key_id}","collaborators_url":"https://api.github.com/repos/grncdr/js-capitalize/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/grncdr/js-capitalize/teams","hooks_url":"https://api.github.com/repos/grncdr/js-capitalize/hooks","issue_events_url":"https://api.github.com/repos/grncdr/js-capitalize/issues/events{/number}","events_url":"https://api.github.com/repos/grncdr/js-capitalize/events","assignees_url":"https://api.github.com/repos/grncdr/js-capitalize/assignees{/user}","branches_url":"https://api.github.com/repos/grncdr/js-capitalize/branches{/branch}","tags_url":"https://api.github.com/repos/grncdr/js-capitalize/tags","blobs_url":"https://api.github.com/repos/grncdr/js-capitalize/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/grncdr/js-capitalize/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/grncdr/js-capitalize/git/refs{/sha}","trees_url":"https://api.github.com/repos/grncdr/js-capitalize/git/trees{/sha}","statuses_url":"https://api.github.com/repos/grncdr/js-capitalize/statuses/{sha}","languages_url":"https://api.github.com/repos/grncdr/js-capitalize/languages","stargazers_url":"https://api.github.com/repos/grncdr/js-capitalize/stargazers","contributors_url":"https://api.github.com/repos/grncdr/js-capitalize/contributors","subscribers_url":"https://api.github.com/repos/grncdr/js-capitalize/subscribers","subscription_url":"https://api.github.com/repos/grncdr/js-capitalize/subscription","commits_url":"https://api.github.com/repos/grncdr/js-capitalize/commits{/sha}","git_commits_url":"https://api.github.com/repos/grncdr/js-capitalize/git/commits{/sha}","comments_url":"https://api.github.com/repos/grncdr/js-capitalize/comments{/number}","issue_comment_url":"https://api.github.com/repos/grncdr/js-capitalize/issues/comments{/number}","contents_url":"https://api.github.com/repos/grncdr/js-capitalize/contents/{+path}","compare_url":"https://api.github.com/repos/grncdr/js-capitalize/compare/{base}...{head}","merges_url":"https://api.github.com/repos/grncdr/js-capitalize/merges","archive_url":"https://api.github.com/repos/grncdr/js-capitalize/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/grncdr/js-capitalize/downloads","issues_url":"https://api.github.com/repos/grncdr/js-capitalize/issues{/number}","pulls_url":"https://api.github.com/repos/grncdr/js-capitalize/pulls{/number}","milestones_url":"https://api.github.com/repos/grncdr/js-capitalize/milestones{/number}","notifications_url":"https://api.github.com/repos/grncdr/js-capitalize/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/grncdr/js-capitalize/labels{/name}","releases_url":"https://api.github.com/repos/grncdr/js-capitalize/releases{/id}","created_at":"2014-01-31T16:39:09Z","updated_at":"2015-03-21T02:58:25Z","pushed_at":"2015-05-18T19:40:59Z","git_url":"git://github.com/grncdr/js-capitalize.git","ssh_url":"git@github.com:grncdr/js-capitalize.git","clone_url":"https://github.com/grncdr/js-capitalize.git","svn_url":"https://github.com/grncdr/js-capitalize","homepage":"","size":215,"stargazers_count":3,"watchers_count":3,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":1,"forks":4,"open_issues":1,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/grncdr/js-capitalize/pulls/3"},"html":{"href":"https://github.com/grncdr/js-capitalize/pull/3"},"issue":{"href":"https://api.github.com/repos/grncdr/js-capitalize/issues/3"},"comments":{"href":"https://api.github.com/repos/grncdr/js-capitalize/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/grncdr/js-capitalize/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/grncdr/js-capitalize/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/grncdr/js-capitalize/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/grncdr/js-capitalize/statuses/5b23f789351d2f380d4170d1eed13a928db8e5f3"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"grncdr","id":82634,"avatar_url":"https://avatars.githubusercontent.com/u/82634?v=3","gravatar_id":"","url":"https://api.github.com/users/grncdr","html_url":"https://github.com/grncdr","followers_url":"https://api.github.com/users/grncdr/followers","following_url":"https://api.github.com/users/grncdr/following{/other_user}","gists_url":"https://api.github.com/users/grncdr/gists{/gist_id}","starred_url":"https://api.github.com/users/grncdr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grncdr/subscriptions","organizations_url":"https://api.github.com/users/grncdr/orgs","repos_url":"https://api.github.com/users/grncdr/repos","events_url":"https://api.github.com/users/grncdr/events{/privacy}","received_events_url":"https://api.github.com/users/grncdr/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"commits":1,"additions":11,"deletions":1,"changed_files":3}}