We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Please note that this bug is fixed in git-url-parse 11.1.2.
git-url-parse
$ npm init -y
$ npm i --save [email protected]
test.js
const GitUrlParse = require("git-url-parse"); console.log(GitUrlParse("[email protected]:asciidoctor/asciidoctor.js.git"));
$ node test.js
{ protocols: [ 'http' ], protocol: 'ssh', port: null, resource: 'github.com', user: 'git', pathname: '/:asciidoctor/asciidoctor.js.git', hash: '', search: '', href: 'http://[email protected]/:asciidoctor/asciidoctor.js.git', query: [Object: null prototype] {}, token: '', toString: [Function], source: 'github.com', git_suffix: true, name: 'asciidoctor.js', owner: ':asciidoctor', commit: undefined, ref: '', filepathtype: '', filepath: '', organization: ':asciidoctor', full_name: ':asciidoctor/asciidoctor.js' }
Notice that the organization and the owner is :asciidoctor (prefixed by :).
:asciidoctor
:
{ protocols: [], protocol: 'ssh', port: null, resource: 'github.com', user: 'git', pathname: '/asciidoctor/asciidoctor.js.git', hash: '', search: '', href: '[email protected]:asciidoctor/asciidoctor.js.git', query: [Object: null prototype] {}, token: '', toString: [Function], source: 'github.com', git_suffix: true, name: 'asciidoctor.js', owner: 'asciidoctor', commit: undefined, ref: '', filepathtype: '', filepath: '', organization: 'asciidoctor', full_name: 'asciidoctor/asciidoctor.js' }
Now the organization and the owner is valid.
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Please note that this bug is fixed in
git-url-parse
11.1.2.Reproduction case
$ npm init -y
$ npm i --save [email protected]
test.js
$ node test.js
Notice that the organization and the owner is
:asciidoctor
(prefixed by:
).$ npm i --save [email protected]
Now the organization and the owner is valid.
The text was updated successfully, but these errors were encountered: