Skip to content

std: fs/expand_glob.ts: expandGlob broken from 2c7274741ca669c3ee125623657e4f37e39408a0 #3099

@cscheid

Description

@cscheid

The commit 2c7274741ca669c3ee125623657e4f37e39408a0 seemingly broke ** expansion in expandGlob, in 0.161.0.

Repro:

$ mkdir repro
$ cd repro
$ mkdir -p foo/bar
$ touch 1
$ touch foo/1
$ touch foo/bar/1
$ deno
Deno 1.28.1
exit using ctrl+d, ctrl+c, or close()
> import { expandGlobSync } from "https://deno.land/std@0.160.0/fs/mod.ts";

undefined
> console.log([...await expandGlobSync("**/1")].length);
3
undefined
>
$ deno
Deno 1.28.1
exit using ctrl+d, ctrl+c, or close()
> import { expandGlobSync } from "https://deno.land/std@0.161.0/fs/mod.ts";

undefined
> console.log([...await expandGlobSync("**/1")].length);
2
undefined
>

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions