Skip to content

add anchored search APIs #675

Closed
Closed
@Alphare

Description

@Alphare

In Mercurial, we have to use ^(?:<patterns>) where <patterns> is the culmination of all patterns (transformed to regex) in the user's .hgignore to remove the additional .* on each end. The user could input a regex like )(, which while invalid on its own would work with the workaround and would create a useless capturing group.

Adding an option to RegexBuilder and its bytes cousin seems like a good solution to me.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions