-
-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
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
Attempt to correct linked file regEx in branchUrl #190
Conversation
I fear that’s not enough, branch names can include |
a wait, no we are fine, because the Could you try to add a test covering the change, so we don’t break it in future? |
Whoa, but does GitHub generate URLs that include We could also compare it to the filename, so basically snip out the filename then subtract the relative path from the |
|
Let me look at the tests, hang on a sec! |
see first-timers#189 -- if this passes, then first-timers#190 should fix it!
Sorry, i'm making a real mess of my PRs. I'm trying to open a PR with just the test to let it fail first. |
OK, so for what it's worth, in my PR mess, i now have all three states :-/ -- well, don't we all love empiricism:
We can move to #191 or I can merge it into here too? |
Ideally, to make my life easiest :D you do the following
|
Hi, I /think/ this is correct:
(.+)
is changed to(\w+)
and the slash is moved inside the "blob" bit. I tested and it correctly addresses the issue in #189. It had been grabbing all ofblob/branch-name/path/to/file.rb
and replacing, instead of justblob/branch-name
....but am not sure of branch name conventions. Will
(\w+)
correctly grab any branch name?