-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bugfix isAtPath to accept identical prefix/path values
The previous fix checking for length being less than 2 was not accurate because it was letting paths with just a trailing slash to pass through. We roll it back to checking if the length is exactly 1 in difference, and also do an earlier check for prefix and path being identical in order to better handle the exception cases. Signed-off-by: Jeremy Ho <jujaga@gmail.com>
- Loading branch information
Showing
2 changed files
with
6 additions
and
3 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