-
Notifications
You must be signed in to change notification settings - Fork 291
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Globbing with single file in source directory fails #315
Comments
Duplicate of #282, but yes, it's absolutely time to fix this @anishathalye ... I've expressed my opinion in the other issue. |
anishathalye
added a commit
that referenced
this issue
Jul 9, 2023
See #282 and #315. This patch simplifies the implementation, removing special-case handling for the cases of zero matches and one match. Instead, any situation where `glob: true` is specified and the path contains a glob character (any of "?", "*", or "[") is treated as a glob case. The reason we check both `use_glob` and `_has_glob_chars()` is to more gracefully handle the case where the user has enabled globs by default, but most links do not contain glob characters and should not be treated as globs.
Thanks for bumping this. Dupe of #282, now fixed. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Running d2f76a2, I found that this from the examples:
... does not work when you only have one file in the config directory.
Example:
As soon as you add another file, globbing works.
The text was updated successfully, but these errors were encountered: