-
Notifications
You must be signed in to change notification settings - Fork 961
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
Handle trailing slashes in basename #108
Conversation
Do we really need this in the code though? I feel like it'd be easier just to tell people to not put a trailing slash in |
Intuitively I feel like if the basenames: |
I'd be ok with this change. There are failing tests that need to be fixed, though. Can you please fix them first, @davis? |
Test failure is not related to the PR I don't think - I'm re-running the build. |
Oh, never mind, I didn't scroll down far enough - those are real test failures. |
Hey guys, I've changed the code to use slice/charAt instead of startsWith/endsWith so that the tests pass in all environments. |
Thanks! Do we need to update any docs or changelogs to go with this? |
We can merge this for now, @taion. I'll add a "contributing" doc that explains how to update |
Handle trailing slashes in basename
Thanks @davis ! |
currently:
this pr handles both cases