editorconfig-fnmatch: fix ** globs (#374)

Cherypick of upstream commit 4af10445fcdf1c9dfa7af4f9e5bec59e8a759d6f
This commit is contained in:
lolbinarycat 2025-12-12 15:26:30 -05:00 committed by Stefan Monnier
parent 55b610490b
commit 96bb95c8cc

View file

@ -166,7 +166,9 @@ translation is found for PATTERN."
(setq pos index)
(if (and (< pos length)
(= (aref pattern pos) ?*))
".*"
(progn
(setq index (1+ index))
".*")
"[^/]*"))
(?? "[^/]")