{"action":"created","comment":{"url":"https://api.github.com/repos/yargs/yargs-parser/pulls/comments/59104789","id":59104789,"diff_hunk":"@@ -762,6 +762,29 @@ describe('yargs-parser', function () {\n       argv.should.have.property('n', 123)\n     })\n \n+    it('should set n to the numeric value 123, with n at the end of a group', function () {\n+      var argv = parser([ '-ab5n123' ])","path":"test/yargs-parser.js","position":5,"original_position":5,"commit_id":"d527a45370535ab6943ed64dd229fd4836cbf7f9","original_commit_id":"d527a45370535ab6943ed64dd229fd4836cbf7f9","user":{"login":"bcoe","id":194609,"avatar_url":"https://avatars.githubusercontent.com/u/194609?v=3","gravatar_id":"","url":"https://api.github.com/users/bcoe","html_url":"https://github.com/bcoe","followers_url":"https://api.github.com/users/bcoe/followers","following_url":"https://api.github.com/users/bcoe/following{/other_user}","gists_url":"https://api.github.com/users/bcoe/gists{/gist_id}","starred_url":"https://api.github.com/users/bcoe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bcoe/subscriptions","organizations_url":"https://api.github.com/users/bcoe/orgs","repos_url":"https://api.github.com/users/bcoe/repos","events_url":"https://api.github.com/users/bcoe/events{/privacy}","received_events_url":"https://api.github.com/users/bcoe/received_events","type":"User","site_admin":false},"body":"part of me would expect this to equal:\r\n\r\na: true\r\nb: true\r\n5: true\r\nn: true\r\n1: true\r\n2: true\r\n3: true","created_at":"2016-04-09T00:07:47Z","updated_at":"2016-04-09T00:07:47Z","html_url":"https://github.com/yargs/yargs-parser/pull/19#discussion_r59104789","pull_request_url":"https://api.github.com/repos/yargs/yargs-parser/pulls/19","_links":{"self":{"href":"https://api.github.com/repos/yargs/yargs-parser/pulls/comments/59104789"},"html":{"href":"https://github.com/yargs/yargs-parser/pull/19#discussion_r59104789"},"pull_request":{"href":"https://api.github.com/repos/yargs/yargs-parser/pulls/19"}}},"pull_request":{"url":"https://api.github.com/repos/yargs/yargs-parser/pulls/19","id":65064352,"html_url":"https://github.com/yargs/yargs-parser/pull/19","diff_url":"https://github.com/yargs/yargs-parser/pull/19.diff","patch_url":"https://github.com/yargs/yargs-parser/pull/19.patch","issue_url":"https://api.github.com/repos/yargs/yargs-parser/issues/19","number":19,"state":"open","locked":false,"title":"Fix issue with numeric character in group of options","user":{"login":"elas7","id":7537033,"avatar_url":"https://avatars.githubusercontent.com/u/7537033?v=3","gravatar_id":"","url":"https://api.github.com/users/elas7","html_url":"https://github.com/elas7","followers_url":"https://api.github.com/users/elas7/followers","following_url":"https://api.github.com/users/elas7/following{/other_user}","gists_url":"https://api.github.com/users/elas7/gists{/gist_id}","starred_url":"https://api.github.com/users/elas7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elas7/subscriptions","organizations_url":"https://api.github.com/users/elas7/orgs","repos_url":"https://api.github.com/users/elas7/repos","events_url":"https://api.github.com/users/elas7/events{/privacy}","received_events_url":"https://api.github.com/users/elas7/received_events","type":"User","site_admin":false},"body":"When checking a group of options, if there is any number in the characters following the key being currently evaluated, then everything after the current key will be set as its value. This happens because the regex that checks for numbers is missing a `^` at the beginning, so strings like `'abc123'` are considered numbers.\r\n\r\nAn issue caused by this is that, for example, calling `-abc=123` results in `{\"_\": [], \"a\": \"bc=123\"}` instead of `{\"_\": [], \"a\": true, \"b\": true, \"c\": 123}`","created_at":"2016-04-03T10:04:32Z","updated_at":"2016-04-09T00:07:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":"607a83a057b08e40f587ec3737865c97982a7f4e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/yargs/yargs-parser/pulls/19/commits","review_comments_url":"https://api.github.com/repos/yargs/yargs-parser/pulls/19/comments","review_comment_url":"https://api.github.com/repos/yargs/yargs-parser/pulls/comments{/number}","comments_url":"https://api.github.com/repos/yargs/yargs-parser/issues/19/comments","statuses_url":"https://api.github.com/repos/yargs/yargs-parser/statuses/d527a45370535ab6943ed64dd229fd4836cbf7f9","head":{"label":"elas7:fix-group","ref":"fix-group","sha":"d527a45370535ab6943ed64dd229fd4836cbf7f9","user":{"login":"elas7","id":7537033,"avatar_url":"https://avatars.githubusercontent.com/u/7537033?v=3","gravatar_id":"","url":"https://api.github.com/users/elas7","html_url":"https://github.com/elas7","followers_url":"https://api.github.com/users/elas7/followers","following_url":"https://api.github.com/users/elas7/following{/other_user}","gists_url":"https://api.github.com/users/elas7/gists{/gist_id}","starred_url":"https://api.github.com/users/elas7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elas7/subscriptions","organizations_url":"https://api.github.com/users/elas7/orgs","repos_url":"https://api.github.com/users/elas7/repos","events_url":"https://api.github.com/users/elas7/events{/privacy}","received_events_url":"https://api.github.com/users/elas7/received_events","type":"User","site_admin":false},"repo":{"id":53991033,"name":"yargs-parser","full_name":"elas7/yargs-parser","owner":{"login":"elas7","id":7537033,"avatar_url":"https://avatars.githubusercontent.com/u/7537033?v=3","gravatar_id":"","url":"https://api.github.com/users/elas7","html_url":"https://github.com/elas7","followers_url":"https://api.github.com/users/elas7/followers","following_url":"https://api.github.com/users/elas7/following{/other_user}","gists_url":"https://api.github.com/users/elas7/gists{/gist_id}","starred_url":"https://api.github.com/users/elas7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elas7/subscriptions","organizations_url":"https://api.github.com/users/elas7/orgs","repos_url":"https://api.github.com/users/elas7/repos","events_url":"https://api.github.com/users/elas7/events{/privacy}","received_events_url":"https://api.github.com/users/elas7/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/elas7/yargs-parser","description":":muscle: the mighty option parser used by yargs","fork":true,"url":"https://api.github.com/repos/elas7/yargs-parser","forks_url":"https://api.github.com/repos/elas7/yargs-parser/forks","keys_url":"https://api.github.com/repos/elas7/yargs-parser/keys{/key_id}","collaborators_url":"https://api.github.com/repos/elas7/yargs-parser/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/elas7/yargs-parser/teams","hooks_url":"https://api.github.com/repos/elas7/yargs-parser/hooks","issue_events_url":"https://api.github.com/repos/elas7/yargs-parser/issues/events{/number}","events_url":"https://api.github.com/repos/elas7/yargs-parser/events","assignees_url":"https://api.github.com/repos/elas7/yargs-parser/assignees{/user}","branches_url":"https://api.github.com/repos/elas7/yargs-parser/branches{/branch}","tags_url":"https://api.github.com/repos/elas7/yargs-parser/tags","blobs_url":"https://api.github.com/repos/elas7/yargs-parser/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/elas7/yargs-parser/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/elas7/yargs-parser/git/refs{/sha}","trees_url":"https://api.github.com/repos/elas7/yargs-parser/git/trees{/sha}","statuses_url":"https://api.github.com/repos/elas7/yargs-parser/statuses/{sha}","languages_url":"https://api.github.com/repos/elas7/yargs-parser/languages","stargazers_url":"https://api.github.com/repos/elas7/yargs-parser/stargazers","contributors_url":"https://api.github.com/repos/elas7/yargs-parser/contributors","subscribers_url":"https://api.github.com/repos/elas7/yargs-parser/subscribers","subscription_url":"https://api.github.com/repos/elas7/yargs-parser/subscription","commits_url":"https://api.github.com/repos/elas7/yargs-parser/commits{/sha}","git_commits_url":"https://api.github.com/repos/elas7/yargs-parser/git/commits{/sha}","comments_url":"https://api.github.com/repos/elas7/yargs-parser/comments{/number}","issue_comment_url":"https://api.github.com/repos/elas7/yargs-parser/issues/comments{/number}","contents_url":"https://api.github.com/repos/elas7/yargs-parser/contents/{+path}","compare_url":"https://api.github.com/repos/elas7/yargs-parser/compare/{base}...{head}","merges_url":"https://api.github.com/repos/elas7/yargs-parser/merges","archive_url":"https://api.github.com/repos/elas7/yargs-parser/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/elas7/yargs-parser/downloads","issues_url":"https://api.github.com/repos/elas7/yargs-parser/issues{/number}","pulls_url":"https://api.github.com/repos/elas7/yargs-parser/pulls{/number}","milestones_url":"https://api.github.com/repos/elas7/yargs-parser/milestones{/number}","notifications_url":"https://api.github.com/repos/elas7/yargs-parser/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/elas7/yargs-parser/labels{/name}","releases_url":"https://api.github.com/repos/elas7/yargs-parser/releases{/id}","deployments_url":"https://api.github.com/repos/elas7/yargs-parser/deployments","created_at":"2016-03-16T01:28:39Z","updated_at":"2016-03-16T01:28:40Z","pushed_at":"2016-04-08T11:18:34Z","git_url":"git://github.com/elas7/yargs-parser.git","ssh_url":"git@github.com:elas7/yargs-parser.git","clone_url":"https://github.com/elas7/yargs-parser.git","svn_url":"https://github.com/elas7/yargs-parser","homepage":"http://yargs.js.org/","size":72,"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":"yargs:master","ref":"master","sha":"48b1e6a338f80417b3fd0fc3e39ae181332fdcb5","user":{"login":"yargs","id":16504989,"avatar_url":"https://avatars.githubusercontent.com/u/16504989?v=3","gravatar_id":"","url":"https://api.github.com/users/yargs","html_url":"https://github.com/yargs","followers_url":"https://api.github.com/users/yargs/followers","following_url":"https://api.github.com/users/yargs/following{/other_user}","gists_url":"https://api.github.com/users/yargs/gists{/gist_id}","starred_url":"https://api.github.com/users/yargs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yargs/subscriptions","organizations_url":"https://api.github.com/users/yargs/orgs","repos_url":"https://api.github.com/users/yargs/repos","events_url":"https://api.github.com/users/yargs/events{/privacy}","received_events_url":"https://api.github.com/users/yargs/received_events","type":"Organization","site_admin":false},"repo":{"id":50258379,"name":"yargs-parser","full_name":"yargs/yargs-parser","owner":{"login":"yargs","id":16504989,"avatar_url":"https://avatars.githubusercontent.com/u/16504989?v=3","gravatar_id":"","url":"https://api.github.com/users/yargs","html_url":"https://github.com/yargs","followers_url":"https://api.github.com/users/yargs/followers","following_url":"https://api.github.com/users/yargs/following{/other_user}","gists_url":"https://api.github.com/users/yargs/gists{/gist_id}","starred_url":"https://api.github.com/users/yargs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yargs/subscriptions","organizations_url":"https://api.github.com/users/yargs/orgs","repos_url":"https://api.github.com/users/yargs/repos","events_url":"https://api.github.com/users/yargs/events{/privacy}","received_events_url":"https://api.github.com/users/yargs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/yargs/yargs-parser","description":":muscle: the mighty option parser used by yargs","fork":false,"url":"https://api.github.com/repos/yargs/yargs-parser","forks_url":"https://api.github.com/repos/yargs/yargs-parser/forks","keys_url":"https://api.github.com/repos/yargs/yargs-parser/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yargs/yargs-parser/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yargs/yargs-parser/teams","hooks_url":"https://api.github.com/repos/yargs/yargs-parser/hooks","issue_events_url":"https://api.github.com/repos/yargs/yargs-parser/issues/events{/number}","events_url":"https://api.github.com/repos/yargs/yargs-parser/events","assignees_url":"https://api.github.com/repos/yargs/yargs-parser/assignees{/user}","branches_url":"https://api.github.com/repos/yargs/yargs-parser/branches{/branch}","tags_url":"https://api.github.com/repos/yargs/yargs-parser/tags","blobs_url":"https://api.github.com/repos/yargs/yargs-parser/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yargs/yargs-parser/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yargs/yargs-parser/git/refs{/sha}","trees_url":"https://api.github.com/repos/yargs/yargs-parser/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yargs/yargs-parser/statuses/{sha}","languages_url":"https://api.github.com/repos/yargs/yargs-parser/languages","stargazers_url":"https://api.github.com/repos/yargs/yargs-parser/stargazers","contributors_url":"https://api.github.com/repos/yargs/yargs-parser/contributors","subscribers_url":"https://api.github.com/repos/yargs/yargs-parser/subscribers","subscription_url":"https://api.github.com/repos/yargs/yargs-parser/subscription","commits_url":"https://api.github.com/repos/yargs/yargs-parser/commits{/sha}","git_commits_url":"https://api.github.com/repos/yargs/yargs-parser/git/commits{/sha}","comments_url":"https://api.github.com/repos/yargs/yargs-parser/comments{/number}","issue_comment_url":"https://api.github.com/repos/yargs/yargs-parser/issues/comments{/number}","contents_url":"https://api.github.com/repos/yargs/yargs-parser/contents/{+path}","compare_url":"https://api.github.com/repos/yargs/yargs-parser/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yargs/yargs-parser/merges","archive_url":"https://api.github.com/repos/yargs/yargs-parser/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yargs/yargs-parser/downloads","issues_url":"https://api.github.com/repos/yargs/yargs-parser/issues{/number}","pulls_url":"https://api.github.com/repos/yargs/yargs-parser/pulls{/number}","milestones_url":"https://api.github.com/repos/yargs/yargs-parser/milestones{/number}","notifications_url":"https://api.github.com/repos/yargs/yargs-parser/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yargs/yargs-parser/labels{/name}","releases_url":"https://api.github.com/repos/yargs/yargs-parser/releases{/id}","deployments_url":"https://api.github.com/repos/yargs/yargs-parser/deployments","created_at":"2016-01-23T21:03:32Z","updated_at":"2016-03-12T07:42:19Z","pushed_at":"2016-04-09T00:06:42Z","git_url":"git://github.com/yargs/yargs-parser.git","ssh_url":"git@github.com:yargs/yargs-parser.git","clone_url":"https://github.com/yargs/yargs-parser.git","svn_url":"https://github.com/yargs/yargs-parser","homepage":"http://yargs.js.org/","size":142,"stargazers_count":31,"watchers_count":31,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"open_issues_count":4,"forks":6,"open_issues":4,"watchers":31,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/yargs/yargs-parser/pulls/19"},"html":{"href":"https://github.com/yargs/yargs-parser/pull/19"},"issue":{"href":"https://api.github.com/repos/yargs/yargs-parser/issues/19"},"comments":{"href":"https://api.github.com/repos/yargs/yargs-parser/issues/19/comments"},"review_comments":{"href":"https://api.github.com/repos/yargs/yargs-parser/pulls/19/comments"},"review_comment":{"href":"https://api.github.com/repos/yargs/yargs-parser/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/yargs/yargs-parser/pulls/19/commits"},"statuses":{"href":"https://api.github.com/repos/yargs/yargs-parser/statuses/d527a45370535ab6943ed64dd229fd4836cbf7f9"}}}}