Skip to content

Glob only expands "?" wildcard if it's in last path segment #1197

@nfischer

Description

@nfischer

This looks like another regression in v0.9.0.

It seems like glob expansion only expands in the last path segment, not in any earlier path segments. For example:

common.expand(['test/r?sources/file1.txt'])

This will return the same literal input that was passed in: test/r?sources/file1.txt. The expected response is test/resources/file1.txt (an actual file). Interestingly, this appears to only be the case for the ? character. Other symbols (like *) will still expand as expected.

The ? still works when it's used in the final path segment (the file name). The only issue is when ? is part of a folder name in an earlier path segment.

Metadata

Metadata

Assignees

No one assigned

    Labels

    fixBug/defect, or a fix for such a problemmedium priority

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions