-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
canonicalizePath: Drop trailing slashes
After discussion with Duncan Coutts, it was found that the trailing slash-preserving behavior was actually a bug on Windows. This means there is really no reason for the current, somewhat quirky behavior of preserving trailing slashes. However, it has been a while since the change was made, so it would be safer to introduce this as a major version bump. The internal prependCurrentDirectory function has been reworked slightly with regards to the behavior on empty paths, but this not have any visible effect on the public API since they always end up normalizing the result of prependCurrentDirectory in some way or another. Fixes #63.
- Loading branch information
1 parent
6899583
commit 43488ba
Showing
4 changed files
with
67 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters