{"action":"created","issue":{"url":"https://api.github.com/repos/npm/npm-package-arg/issues/2","labels_url":"https://api.github.com/repos/npm/npm-package-arg/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/npm/npm-package-arg/issues/2/comments","events_url":"https://api.github.com/repos/npm/npm-package-arg/issues/2/events","html_url":"https://github.com/npm/npm-package-arg/issues/2","id":37181180,"number":2,"title":"maybeGitHubShorthand should not return true for `../string` and `./string`","user":{"login":"dylang","id":51505,"avatar_url":"https://avatars.githubusercontent.com/u/51505?v=3","gravatar_id":"","url":"https://api.github.com/users/dylang","html_url":"https://github.com/dylang","followers_url":"https://api.github.com/users/dylang/followers","following_url":"https://api.github.com/users/dylang/following{/other_user}","gists_url":"https://api.github.com/users/dylang/gists{/gist_id}","starred_url":"https://api.github.com/users/dylang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dylang/subscriptions","organizations_url":"https://api.github.com/users/dylang/orgs","repos_url":"https://api.github.com/users/dylang/repos","events_url":"https://api.github.com/users/dylang/events{/privacy}","received_events_url":"https://api.github.com/users/dylang/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2014-07-04T17:53:48Z","updated_at":"2015-03-02T22:16:29Z","closed_at":"2015-03-02T22:16:29Z","body":"Can we add `.` to the first negate pattern of `maybeGitHubShorthand`?\r\n\r\nAccording to github: \r\n\r\n> Username may only contain alphanumeric characters or dashes and cannot begin with a dash\r\n\r\nThe same applies for github org names.\r\n\r\nNew code:\r\n```js\r\nfunction maybeGitHubShorthand(arg) {\r\n  return /^[^.@ \\/%]+\\/[^@ \\/%]+$/.test(arg)\r\n}\r\n```\r\n\r\n(Repo names can start with `.`, such as [https://github.com/dylang/...](https://github.com/dylang/...), but I wouldn't recommend it.)"},"comment":{"url":"https://api.github.com/repos/npm/npm-package-arg/issues/comments/76838578","html_url":"https://github.com/npm/npm-package-arg/issues/2#issuecomment-76838578","issue_url":"https://api.github.com/repos/npm/npm-package-arg/issues/2","id":76838578,"user":{"login":"iarna","id":983798,"avatar_url":"https://avatars.githubusercontent.com/u/983798?v=3","gravatar_id":"","url":"https://api.github.com/users/iarna","html_url":"https://github.com/iarna","followers_url":"https://api.github.com/users/iarna/followers","following_url":"https://api.github.com/users/iarna/following{/other_user}","gists_url":"https://api.github.com/users/iarna/gists{/gist_id}","starred_url":"https://api.github.com/users/iarna/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iarna/subscriptions","organizations_url":"https://api.github.com/users/iarna/orgs","repos_url":"https://api.github.com/users/iarna/repos","events_url":"https://api.github.com/users/iarna/events{/privacy}","received_events_url":"https://api.github.com/users/iarna/received_events","type":"User","site_admin":false},"created_at":"2015-03-02T22:16:29Z","updated_at":"2015-03-02T22:16:29Z","body":"This was addressed by the addition of hosted-git-info. `../foo` now parses as local as it should."}}