Skip to content

Commit f22e31d

Browse files
committed
fix(glob): avoid backslash path separator in recursive prefix
1 parent 8e29672 commit f22e31d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/mods/glob.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ local function prepare_glob(name, root, pattern, opts)
375375
validate(name .. ".opts.recursive", opts.recursive, "boolean", true)
376376

377377
if opts.recursive then
378-
pattern = join("**", pattern)
378+
pattern = "**/" .. pattern
379379
end
380380

381381
local ignorecase = opts.ignorecase == nil and is_windows or opts.ignorecase

0 commit comments

Comments
 (0)