bgreenlee / sublime-github

Sublime Text 2/3 plugin that provides a number of useful commands for GitHub.
MIT License
455 stars 98 forks source link

Wrong URLs generated when repo contains directory with same name #39

Closed TrevorBurnham closed 11 years ago

TrevorBurnham commented 11 years ago

Let's say I have a repo named project that contains a directory also called project. If I run the GitHub: Blame command from the file project/README.md, I get taken to

https://github.com/TrevorBurnham/project/blame/master/README.md

rather than the correct URL

https://github.com/TrevorBurnham/project/blame/master/project/README.md

I'm guessing that this is a regex parsing bug, though I haven't been able to track down the culprit.

bgreenlee commented 11 years ago

Give that a try.

TrevorBurnham commented 11 years ago

Works brilliantly. Thanks so much for the quick response.