Skip to content

REGEX operator only matches characters at the beginning of a string #207

@rolodato

Description

@rolodato

REGEX is implemented using Pattern.match, which only checks the beginning of the search string:

If zero or more characters at the beginning of string match this regular expression, return a corresponding Match

This means a regular expression like world will not match a trait value of hello-world.

We should be using Pattern.search instead: https://docs.python.org/3.11/library/re.html#re.Pattern.search

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