Skip to content

Several file extension pattern #163

@snatvb

Description

@snatvb

Hi, most of implementation globs has such pattern:
some/path/*.{txt,ts,rs}

How could I get something like that? Or maybe we could get it as new feature?

For example: https://github.com/mrmlnc/fast-glob

src/**/*.{css,scss} — matches all files in the src directory (any level of nesting) that have the .css or .scss extension.
file-[[:digit:]].js — matches files: file-0.js, file-1.js, …, file-9.js.
file-{1..3}.js — matches files: file-1.js, file-2.js, file-3.js.
file-(1|2) — matches files: file-1.js, file-2.js.

It would be great to improve this. Because we have a lot of new staff to build JS where is this patterns is standard and uses a lot of where.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions