Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature #22239 [Finder] Glob wildcard while using double-star without…
… ending slash (sroze) This PR was squashed before being merged into the 3.3-dev branch (closes #22239). Discussion ---------- [Finder] Glob wildcard while using double-star without ending slash | Q | A | ------------- | --- | Branch? | master | Bug fix? | no | New feature? | yes | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | ø | License | MIT | Doc PR | ø This PR allows to use the `Glob::toRegex` method to dump a glob that will match "everything after" while using the double-star without leading slash. `/foo/**` will therefore match `/foo/a` or `/foo/a/b/c` or even `/foo/a/b/c/d.e`. The use-case for this change is an application allowing its users to match a list of files/folders from such glob pattern. Happy to add a line in the CHANGELOG and documentation if you feel that would make sense. Commits ------- 170b0ac [Finder] Glob wildcard while using double-star without ending slash
- Loading branch information
Showing
3 changed files
with
48 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.dot |
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