Skip to content

Dotfile matching behaviour differs from fast-glob #187

@askoufis

Description

@askoufis

Issue

tinyglobby's dotfile matching behaviour differs from fast-glob's.

When dot: false is set, any path that starts with a . is ignored. This differs from fast-glob's implementation which only ignores paths to files that start with a dot.

It does state in the docs for the dot option that it returns "entries" that start with a dot, not necessarily "paths to files that start with a dot", so the behaviour is at least consistent with the docs.

However, this feels like a nuance that's at least worth documenting if you don't think the behaviour of fast-glob should be replicated.

Reproduction

https://github.com/askoufis/tinyglobby-repro

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions