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
Hi, when running gitUrlParse('https://bitbucket.org/org-name/project-name/src/master/ops/assets/'); I would expected to receive this
gitUrlParse('https://bitbucket.org/org-name/project-name/src/master/ops/assets/');
{ "protocols": [ "https" ], "protocol": "https", "port": null, "resource": "bitbucket.org", "user": "", "pathname": "/org-name/project-name/src/master/ops/assets", "hash": "", "search": "", "href": "https://bitbucket.org/org-name/project-name/src/master/ops/assets", "token": "", "source": "bitbucket.org", "git_suffix": false, "name": "project-name", "owner": "org-name", "commit": "master", "ref": "master", "filepathtype": "src", "filepath": "ops/assets", "organization": "org-name", "full_name": "org-name/project-name" }
but instead I'm getting
{ "protocols": [ "https" ], "protocol": "https", "port": null, "resource": "bitbucket.org", "user": "", "pathname": "/org-name/project-name/src/master/ops/assets", "hash": "", "search": "", "href": "https://bitbucket.org/org-name/project-name/src/master/ops/assets", "query": {}, "token": "", "source": "bitbucket.org", "git_suffix": false, "name": "assets", "owner": "org-name/project-name/src/master/ops", "ref": "", "filepathtype": "", "filepath": "", "organization": "org-name/project-name/src/master/ops", "full_name": "org-name/project-name/src/master/ops/assets" }
Just as a matter of test, if I changes /src/ with /tree/ it works fine and gives me:
/src/
/tree/
{ "protocols": [ "https" ], "protocol": "https", "port": null, "resource": "bitbucket.org", "user": "", "pathname": "/org-name/project-name/tree/master/ops/assets", "hash": "", "search": "", "href": "https://bitbucket.org/org-name/project-name/tree/master/ops/assets", "query": {}, "token": "", "source": "bitbucket.org", "git_suffix": false, "name": "project-name", "owner": "org-name", "commit": "master", "ref": "master", "filepathtype": "tree", "filepath": "ops/assets", "organization": "org-name", "full_name": "org-name/project-name" }
The text was updated successfully, but these errors were encountered:
Yup. Okay, i'm not surprised that parse-github-url works for this case :)
parse-github-url
Jon is really damn good at creating stable packages :)
Just mentioning that, because I need a universal parser of git urls and tried your example and gave me correct output that you expect.
Sorry, something went wrong.
@onhate This should have been fixed by #113
No branches or pull requests
Hi, when running
gitUrlParse('https://bitbucket.org/org-name/project-name/src/master/ops/assets/');
I would expected to receive thisbut instead I'm getting
Just as a matter of test, if I changes
/src/
with/tree/
it works fine and gives me:The text was updated successfully, but these errors were encountered: