1
0
Fork 0
mirror of synced 2024-06-15 05:41:10 -04:00
dotbot/dotbot
Anish Athalye 416f32f5fe Fix globbing when there is a single match
See https://github.com/anishathalye/dotbot/issues/282 and
https://github.com/anishathalye/dotbot/issues/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.
2023-07-09 16:24:13 -04:00
..
messenger Add isort as a tox environment, and run it 2022-05-13 10:44:29 -05:00
plugins Fix globbing when there is a single match 2023-07-09 16:24:13 -04:00
util Add isort as a tox environment, and run it 2022-05-13 10:44:29 -05:00
__init__.py Release 1.19.1 2022-12-17 15:13:48 -05:00
__main__.py Added support to run with python -m 2020-07-23 08:44:06 -07:00
cli.py Improve output of '--version' 2023-07-09 15:26:46 -04:00
config.py Add isort as a tox environment, and run it 2022-05-13 10:44:29 -05:00
context.py Migrate code style to Black 2022-01-30 18:53:05 -05:00
dispatcher.py Add isort as a tox environment, and run it 2022-05-13 10:44:29 -05:00
plugin.py Add isort as a tox environment, and run it 2022-05-13 10:44:29 -05:00