-
Notifications
You must be signed in to change notification settings - Fork 29.6k
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
Path should format when 'base' missing and 'name' and 'ext' exist #2305
Comments
Your example code above is really confusing, its not clear whether you are posting a unit test that should pass, but does not pass right now, or that passes right now, but that should not. For future readers, the problem is that the unit test does pass, and that's lame:
This is somewhat as I would expect, because it parallels how
This is bizarre, I would expect Also, note that One example of how it behaves with a single set of inputs is not documentation :-(. Its also a particularly bad example, because it implies that the @reggi I'd +1 a fix for this, particularly one that actually added documentation in detail, in a form paralleling
What happened to |
@sam-github Thanks for looking into the topic and sorry for the ambiguous test, should have mentioned that it passes. I completely agree on paralleling |
Except for the documentation issues cited by @sam-github, this all appears to be fixed. If no one beats me to it (and please, feel free), I'll try to get around to documenting this soon so we can close this out. |
Documentation landed in a97dfa0. |
This test shows that
name
andext
are not taken into account when usingpath.format
without abase
.The common usage this is preventing is this:
However this doesn't do anything.
https://github.com/nodejs/io.js/blob/master/lib/path.js#L584
I can write a pull request, if anyone else thinks this is a good idea.
The text was updated successfully, but these errors were encountered: