-
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix pattern not ending in slash not matching directory
I've found that when having an entry like `/foo/bar @foo` in the CODEOWNERS file the library properly reports `@foo` as the owner for `/foo/bar` and `/foo/bar/quux` but not for `/foo/bar/` (note the slash at the end). This PR adds tests for this case and fixes the regular expression to take this case into account.
- Loading branch information
Showing
2 changed files
with
11 additions
and
1 deletion.
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