Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bug #22985 [Config] Allow empty globs (nicolas-grekas)
This PR was merged into the 3.3 branch. Discussion ---------- [Config] Allow empty globs | Q | A | ------------- | --- | Branch? | 3.3 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #22950 | License | MIT | Doc PR | - This considers globs as valid even if they return no matches when they have a prefix (and when that prefix exists, according to `$ignoreErrors`). This means there is an edge-case: `*.abc` with at least one match is OK, but when it has no match, it falls back to regular import, then usually will fil. But rewriting this to `./*.abc` resolves the ambiguity and turns this into a glob that won't fail if no matches are found. This should provide the expected behavior in most cases (but ambiguous described one of course). Commits ------- c5b9c1a [Config] Allow empty globs
- Loading branch information
Showing
2 changed files
with
27 additions
and
6 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