Skip to content

Text outside {{..}} can get replaced if it matches PropertyKey #8

@vjohansen

Description

@vjohansen

return variables[splitItem] ? variables[splitItem] : splitItem

There is a bug when a text fragment matches the PropertyKey

stringInterpolation('foo{{foo}}', { foo: 'bar' })

I get barbar instead of foobar

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