Skip to content

Java 17.0.6 + jinjava 2.5.0 function: ".replace" #1019

@sanchoo85

Description

@sanchoo85

After upgrading java 11 to 17 we have a problem with the replace function.
Example:
{{ "web.xyz".replace('web', 'test') }} -> teb.xyz
This works fine:
{{ "web.xyz"|replace('web', 'test') }} -> test.xyz

After upgrading java from the replace function, it takes the first character from the replace function and not the whole string.

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