Skip to content

trim_end_match doesn't work as expected #1658

@avi-cenna

Description

@avi-cenna

I'm not sure if I'm misunderstanding the documentation, but I would expect the following lines to print the same result.

test:
    echo {{ replace_regex('ping-pong', '-.*$', '') }}
    echo {{ trim_end_match('ping-pong', '-.*$') }}

In fact, the first line prints ping as expected, but the second line prints ping-pong. Isn't trim_end_match supposed to take a regular expression?

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