Skip to content

Hyphens "-" seems to make the match query to behave differently? #132

@mitchuman

Description

@mitchuman

I'm looking to use the match query to target strings based on a "route" string (e.g. blog/*, foo/bar/* etc). However, as soon as a hyphen "-" the match result behaves incorrectly? Or am I missing something about the hyphen?

'blogs' match 'blog/*'    // false ✅

'blog' match 'blog/*'    // true ✅

'blog-' match 'blog/*'    // true ❌ wrong?

'blog-test' match 'blog/*'    // true ❌ wrong?

'blog-list/test' match 'blog/*'    // true ❌ wrong?

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