-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes: #9594 Issue link: #9594 The `String.replaceFirst()` for directory with `[]` or `()` leads to a regex execution which does not really replace the root path because of mismatch between regex and file path. Essentially, the `Matcher.quoteReplacement()` does not do the trick we would expect from it. * Use `Path.relativize()` API instead which works in canonical paths and proper file separators (cherry picked from commit 9149409)
- Loading branch information
1 parent
3eb380b
commit 7170f27
Showing
2 changed files
with
26 additions
and
36 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