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 git-url-parse@10.1.0
test.js
const GitUrlParse = require("git-url-parse"); console.log(GitUrlParse("git@github.com: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://git@github.com/: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
:
$ npm i --save git-url-parse@11.1.2
{ protocols: [], protocol: 'ssh', port: null, resource: 'github.com', user: 'git', pathname: '/asciidoctor/asciidoctor.js.git', hash: '', search: '', href: 'git@github.com: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 git-url-parse@10.1.0
test.js
$ node test.js
Notice that the organization and the owner is
:asciidoctor
(prefixed by:
).$ npm i --save git-url-parse@11.1.2
Now the organization and the owner is valid.
The text was updated successfully, but these errors were encountered: