Skip to content

[Feature Request] Add regex anchors by default #4

@leesoh

Description

@leesoh

I love your extension! One thing that wasn't obvious to me initially (but quickly became so) was that the auto-populated regular expressions don't appear to have anchors. So for a path of /foo/123145/bar, your regular expression if you were being sloppy would be /foo/\d+/bar, which would work wonderfully, but would also match /foo/123145/bar/baz. Can I suggest making the default something like ^/foo/123145/bar$? If I get some time I'll try to put a PR together, but wanted to add this in the meantime.

Thanks again and great work!

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